Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ bunx create-prisma@next my-app

The CLI initializes Prisma 8 with `prisma@next`, installs dependencies, emits the contract, and generates a deployable Composer app. PostgreSQL projects use Composer's native Prisma Postgres provider, including migrations and a typed runtime client.

The only Composer prompt is:
The deployment prompt is:

```text
Deploy to Prisma now?
```

Choose no to deploy later with the generated `deploy` script.

When multiple Prisma workspace sessions are available, the CLI asks which workspace should receive
the deployment. For unattended usage, pass `--workspace <id-or-name>` or omit it to use the active
workspace. Choosing another workspace also updates the Prisma CLI's active workspace session.

## Templates

- `minimal`
Expand All @@ -45,6 +49,7 @@ PostgreSQL and MongoDB are supported with PSL or TypeScript contract authoring.
- `--authoring psl|typescript`
- `--package-manager npm|pnpm|yarn|bun`
- `--deploy` / `--no-deploy`
- `--workspace <id-or-name>`
- `--yes`
- `--force`
- `--verbose`
Expand Down
14 changes: 9 additions & 5 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"release-notes": "bunx changelogithub"
},
"dependencies": {
"@clack/prompts": "^1.0.1",
"@clack/prompts": "^1.7.0",
"@orpc/server": "^1.13.5",
"execa": "^9.6.1",
"fs-extra": "^11.3.3",
Expand Down
6 changes: 3 additions & 3 deletions src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ async function executeCreateContext(
log.success("Starter files scaffolded.");
}
} catch (error) {
createSpinner?.stop("Could not create Prisma 8 project.");
createSpinner?.error("Could not create Prisma 8 project.");
return {
ok: false,
stage: "scaffold_template",
Expand All @@ -345,7 +345,7 @@ async function executeCreateContext(
projectDir: context.targetDirectory,
});
} catch (error) {
createSpinner?.stop("Could not create Prisma 8 project.");
createSpinner?.error("Could not create Prisma 8 project.");
return {
ok: false,
stage: "scaffold_template",
Expand Down Expand Up @@ -391,7 +391,7 @@ async function executeCreateContext(
};
}
} catch (error) {
createSpinner?.stop("Could not create Prisma 8 project.");
createSpinner?.error("Could not create Prisma 8 project.");
return {
ok: false,
stage: "prisma_setup",
Expand Down
Loading
Loading