@prisma/cli 8.0.0-rc.2-dev.50 → 8.0.0-rc.20-dev.139

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
@@ -15,15 +15,9 @@
15
15
  `@prisma/cli` is the public beta 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.
20
-
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.
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.
27
21
 
28
22
  ---
29
23
 
@@ -32,7 +26,7 @@ package.
32
26
  Install the beta package locally:
33
27
 
34
28
  ```bash
35
- npm install --save-dev @prisma/cli
29
+ npm install --save-dev @prisma/cli@next
36
30
  ```
37
31
 
38
32
  Run the binary exposed by this package:
@@ -40,22 +34,25 @@ Run the binary exposed by this package:
40
34
  ```bash
41
35
  npx prisma-cli --help
42
36
  npx prisma-cli auth login
43
- npx prisma-cli app deploy
37
+ npx prisma-cli project create my-app
38
+ npx prisma-cli git connect git@github.com:owner/repo.git
44
39
  ```
45
40
 
41
+ Deployments start from pushing the connected repository, the Console, or `prisma-cli deploy`.
42
+
46
43
  With `pnpm`:
47
44
 
48
45
  ```bash
49
- pnpm add -D @prisma/cli
46
+ pnpm add -D @prisma/cli@next
50
47
  pnpm prisma-cli auth login
51
- pnpm prisma-cli app deploy
48
+ pnpm prisma-cli git connect
52
49
  ```
53
50
 
54
51
  Useful next commands:
55
52
 
56
53
  ```bash
57
- npx prisma-cli app logs
58
- npx prisma-cli app open
54
+ npx prisma-cli service list
55
+ npx prisma-cli service logs
59
56
  npx prisma-cli project env add DATABASE_URL=postgresql://example --role preview
60
57
  npx prisma-cli project env add --file .env --role preview
61
58
  npx prisma-cli project env list
@@ -71,24 +68,25 @@ The beta package exposes `prisma-cli` so it can coexist with the existing
71
68
 
72
69
  | Group | What it does |
73
70
  | --- | --- |
74
- | `version` | Show the installed CLI build and host environment. |
75
71
  | `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. |
72
+ | `project` | List, create, link, and manage projects and their environment variables. |
73
+ | `git` | Connect or disconnect a project from a GitHub repository; pushes deploy. |
78
74
  | `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. |
75
+ | `postgres` | Create, inspect, back up, restore, and delete Prisma Postgres databases and their connections. |
76
+ | `bucket` | Create, list, and delete object-store buckets and their access keys. |
77
+ | `service` | Inspect services: versions, logs, domains, promote, roll back, delete. |
78
+ | `dev`, `deploy` | Run a Composer app locally; deploy it to the platform. |
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-cli version
84
+ npx prisma-cli --version
87
85
  npx prisma-cli auth whoami
88
86
  npx prisma-cli project show
89
87
  npx prisma-cli branch list
90
- npx prisma-cli app deploy --branch feat-login --framework nextjs
91
- npx prisma-cli app promote <deployment-id>
88
+ npx prisma-cli service list
89
+ npx prisma-cli service version promote VERSION_ID
92
90
  ```
93
91
 
94
92
  ### Built for humans, CI, and agents
@@ -105,9 +103,9 @@ npx prisma-cli app promote <deployment-id>
105
103
  ## Beta notes
106
104
 
107
105
  - Requires Node.js 22.18 or newer.
108
- - This is a beta package and may change quickly.
109
- - Official beta releases publish as `@prisma/cli`.
110
- - The package binary is `prisma-cli`, not `prisma`, during beta.
106
+ - This is a release-candidate package and may change quickly.
107
+ - The 8.0.0 release candidates publish as `@prisma/cli` on the `next` dist-tag.
108
+ - The package binary is `prisma-cli`; the sibling `prisma` package ships the same CLI under the `prisma` binary.
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-cli 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/cli@latest 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)