prisma 8.0.0-rc.3-dev.53 → 8.0.0-rc.30-dev.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,31 +8,27 @@
8
8
  [![license](https://img.shields.io/npm/l/prisma)](https://github.com/prisma/prisma-cli/blob/main/LICENSE)
9
9
  [![Node.js](https://img.shields.io/node/v/prisma)](https://www.npmjs.com/package/prisma)
10
10
 
11
- [Quickstart](#quickstart) • [Commands](#commands) • [Beta notes](#beta-notes) • [Documentation](#documentation) • [Support](#support)
11
+ [Quickstart](#quickstart) • [Commands](#commands) • [Release candidate notes](#release-candidate-notes) • [Documentation](#documentation) • [Support](#support)
12
12
 
13
13
  ---
14
14
 
15
- `prisma` is the public beta of the new CLI for the
15
+ `prisma` is the release candidate of the new CLI for the
16
16
  Prisma Developer Platform.
17
17
 
18
- It is the terminal surface managing your platform projects, branches, apps,
19
- deployments, and environment variables.
18
+ It is one binary for the ORM, Composer, and the Prisma Developer
19
+ Platform: projects, branches, services, service versions, environment
20
+ variables, and the Prisma ORM schema and migration workflow.
20
21
 
21
- The command model is under active development to include tooling for your
22
- schema, database, migration, and broader platform workflows.
23
-
24
- Looking for Prisma ORM commands such as `prisma generate`, `prisma migrate`, or
25
- `prisma studio`? Use the [`prisma`](https://www.npmjs.com/package/prisma)
26
- package.
22
+ Prisma also runs [Prisma Postgres](https://www.prisma.io/postgres) (managed Postgres) and [Prisma Compute](https://www.prisma.io/compute) (app hosting).
27
23
 
28
24
  ---
29
25
 
30
26
  ## Quickstart
31
27
 
32
- Install the beta package locally:
28
+ Install the package locally:
33
29
 
34
30
  ```bash
35
- npm install --save-dev prisma@next
31
+ npm install --save-dev prisma
36
32
  ```
37
33
 
38
34
  Run the binary exposed by this package:
@@ -40,55 +36,57 @@ Run the binary exposed by this package:
40
36
  ```bash
41
37
  npx prisma --help
42
38
  npx prisma auth login
43
- npx prisma app deploy
39
+ npx prisma project create my-app
40
+ npx prisma git connect git@github.com:owner/repo.git
44
41
  ```
45
42
 
43
+ Deployments start from pushing the connected repository, the Console, or `prisma deploy`.
44
+
46
45
  With `pnpm`:
47
46
 
48
47
  ```bash
49
48
  pnpm add -D prisma
50
49
  pnpm prisma auth login
51
- pnpm prisma app deploy
50
+ pnpm prisma git connect
52
51
  ```
53
52
 
54
53
  Useful next commands:
55
54
 
56
55
  ```bash
57
- npx prisma app logs
58
- npx prisma app open
56
+ npx prisma service list
57
+ npx prisma service logs
59
58
  npx prisma project env add DATABASE_URL=postgresql://example --role preview
60
59
  npx prisma project env add --file .env --role preview
61
60
  npx prisma project env list
62
61
  npx prisma project env list --role preview
63
62
  ```
64
63
 
65
- The beta package exposes `prisma-cli` so it can coexist with the existing
66
- `prisma` executable.
67
-
68
64
  ---
69
65
 
70
66
  ## Commands
71
67
 
72
68
  | Group | What it does |
73
69
  | --- | --- |
74
- | `version` | Show the installed CLI build and host environment. |
75
70
  | `auth` | Log in, log out, and inspect the active Prisma account. |
76
- | `project` | List projects, show the resolved project, and manage project environment variables. |
77
- | `git` | Connect or disconnect a project from a GitHub repository. |
71
+ | `project` | List, create, link, and manage projects and their environment variables. |
72
+ | `git` | Connect or disconnect a project from a GitHub repository; pushes deploy. |
78
73
  | `branch` | List Prisma branches for the resolved project. |
79
- | `database` | Create, inspect, and remove Prisma Postgres databases and their connection strings. |
80
- | `bucket` | Create, list, and delete Tigris object-store buckets and their access keys. |
81
- | `app` | Build, run, deploy, inspect, open, stream logs, promote, roll back, and remove apps. |
74
+ | `postgres` | Create, inspect, back up, restore, and delete Prisma Postgres databases and their connections. |
75
+ | `bucket` | Create, list, and delete object-store buckets and their access keys. |
76
+ | `service` | Inspect services: versions, logs, domains, promote, roll back, delete. |
77
+ | `dev`, `deploy` | Run a Composer app locally; deploy it to the platform. `dev url` prints a running node's local URL and `dev stop` stops the app. |
78
+ | `emulator` | List the local emulators `prisma dev` runs services, databases and buckets on. |
79
+ | `contract`, `db`, `migration`, `orm init`, `lsp` | The Prisma ORM workflow. |
82
80
 
83
81
  Common examples:
84
82
 
85
83
  ```bash
86
- npx prisma version
84
+ npx prisma --version
87
85
  npx prisma auth whoami
88
86
  npx prisma project show
89
87
  npx prisma branch list
90
- npx prisma app deploy --branch feat-login --framework nextjs
91
- npx prisma app promote <deployment-id>
88
+ npx prisma service list
89
+ npx prisma service version promote VERSION_ID
92
90
  ```
93
91
 
94
92
  ### Built for humans, CI, and agents
@@ -102,12 +100,12 @@ npx prisma app promote <deployment-id>
102
100
 
103
101
  ---
104
102
 
105
- ## Beta notes
103
+ ## Release candidate notes
106
104
 
107
- - Requires Node.js 22.18 or newer.
108
- - This is a beta package and may change quickly.
109
- - Official beta releases publish as `prisma`.
110
- - The package binary is `prisma-cli`, not `prisma`, during beta.
105
+ - Requires Node.js 22.18 or newer on the 22 line, 24.11 or newer on the 24 line, or 26 or newer.
106
+ - This is a release-candidate package and may change quickly.
107
+ - The 8.0.0 release candidates publish as `prisma` on the `latest` dist-tag.
108
+ - The package binary is `prisma`.
111
109
  - Local project context is cached in `.prisma/local.json`, which is gitignored and not a declarative repo config file.
112
110
 
113
111
  ---
@@ -115,17 +113,23 @@ npx prisma app promote <deployment-id>
115
113
  ## Documentation
116
114
 
117
115
  - [CLI docs index](https://github.com/prisma/prisma-cli/blob/main/docs/README.md)
118
- - [Resource model](https://github.com/prisma/prisma-cli/blob/main/docs/product/resource-model.md)
119
116
  - [Command principles](https://github.com/prisma/prisma-cli/blob/main/docs/product/command-principles.md)
120
- - [Command spec](https://github.com/prisma/prisma-cli/blob/main/docs/product/command-spec.md)
121
117
  - [Output conventions](https://github.com/prisma/prisma-cli/blob/main/docs/product/output-conventions.md)
122
118
  - [Error conventions](https://github.com/prisma/prisma-cli/blob/main/docs/product/error-conventions.md)
123
119
 
124
120
  ## Support
125
121
 
126
- Issues and feedback are welcome while the CLI is in public beta. Please use
127
- [GitHub issues](https://github.com/prisma/prisma-cli/issues) for bug reports and
128
- feature requests.
122
+ Send a bug report or feature request directly from your terminal:
123
+
124
+ ```bash
125
+ npx prisma feedback "Describe what happened and what you expected"
126
+ ```
127
+
128
+ Feedback is anonymous by default. Add `--email you@example.com` if you want a
129
+ reply. Submissions include your message, CLI and runtime versions, OS platform,
130
+ and architecture. Review your message for secrets before sending.
131
+
132
+ For a public discussion, use [GitHub issues](https://github.com/prisma/prisma-cli/issues).
129
133
 
130
134
  Security reports should follow Prisma's
131
135
  [security policy](https://github.com/prisma/prisma-cli/blob/main/SECURITY.md)
@@ -0,0 +1,2 @@
1
+ import { definePrismaConfig } from "@prisma/cli-engine";
2
+ export { definePrismaConfig };
package/dist/config.js ADDED
@@ -0,0 +1,2 @@
1
+ import { definePrismaConfig } from "@prisma/cli-engine";
2
+ export { definePrismaConfig };