prisma 8.0.0-rc.3-dev.54 → 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 +42 -38
- package/dist/config.d.ts +2 -0
- package/dist/config.js +2 -0
- package/dist/prisma.js +12859 -12811
- package/dist/sender.js +1 -1
- package/package.json +23 -14
- package/skills/prisma-platform-core-concepts/SKILL.md +450 -0
- package/dist/deploy-framework-DHEGywve.js +0 -23
package/README.md
CHANGED
|
@@ -8,31 +8,27 @@
|
|
|
8
8
|
[](https://github.com/prisma/prisma-cli/blob/main/LICENSE)
|
|
9
9
|
[](https://www.npmjs.com/package/prisma)
|
|
10
10
|
|
|
11
|
-
[Quickstart](#quickstart) • [Commands](#commands) • [
|
|
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
|
|
15
|
+
`prisma` is the release candidate of the new CLI for the
|
|
16
16
|
Prisma Developer Platform.
|
|
17
17
|
|
|
18
|
-
It is
|
|
19
|
-
|
|
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
|
-
|
|
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
|
|
28
|
+
Install the package locally:
|
|
33
29
|
|
|
34
30
|
```bash
|
|
35
|
-
npm install --save-dev prisma
|
|
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
|
|
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
|
|
50
|
+
pnpm prisma git connect
|
|
52
51
|
```
|
|
53
52
|
|
|
54
53
|
Useful next commands:
|
|
55
54
|
|
|
56
55
|
```bash
|
|
57
|
-
npx prisma
|
|
58
|
-
npx prisma
|
|
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
|
|
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
|
-
| `
|
|
80
|
-
| `bucket` | Create, list, and delete
|
|
81
|
-
| `
|
|
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
|
|
91
|
-
npx prisma
|
|
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
|
-
##
|
|
103
|
+
## Release candidate notes
|
|
106
104
|
|
|
107
|
-
- Requires Node.js 22.18 or newer.
|
|
108
|
-
- This is a
|
|
109
|
-
-
|
|
110
|
-
- The package binary is `prisma
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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)
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED