create-prisma 0.4.2-pr.34.117.1 → 0.4.2-pr.34.118.1

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
@@ -13,6 +13,7 @@ Scaffold a new app with Prisma already wired up.
13
13
  - adds `db:generate`, `db:migrate`, and `db:seed` scripts
14
14
  - creates or updates `.env` with `DATABASE_URL`
15
15
  - can install dependencies and run `prisma generate` for you
16
+ - can deploy the finished app to Prisma Compute and return a live URL
16
17
 
17
18
  ## Quick Start
18
19
 
@@ -116,6 +117,7 @@ create-prisma --name my-app --template nest --provider postgresql --prisma-postg
116
117
  - `--no-generate` skip `prisma generate`
117
118
  - `--prisma-postgres` provision Prisma Postgres for PostgreSQL
118
119
  - `--skills --mcp --extension` enable optional add-ons
120
+ - `--deploy` / `--no-deploy` deploy the finished app to Prisma Compute (or skip the prompt)
119
121
  - `--force` allow scaffolding into a non-empty directory
120
122
  - `--verbose` print full command output
121
123
 
@@ -129,6 +131,20 @@ create-prisma --name my-app --template nest --provider postgresql --prisma-postg
129
131
 
130
132
  These can be selected interactively or enabled with flags.
131
133
 
134
+ ## Deploy to Prisma Compute
135
+
136
+ After scaffolding, `create-prisma` can deploy your app to [Prisma Compute](https://www.prisma.io/docs/compute), the serverless hosting for TypeScript apps that runs next to your Prisma Postgres database. It is offered for the templates the Prisma CLI can deploy today: `hono`, `elysia`, `next`, and `tanstack-start`.
137
+
138
+ Accept the prompt ("Deploy to Prisma Compute now?") when it appears, or pass the flag:
139
+
140
+ ```bash
141
+ create-prisma --name my-api --template hono --provider postgresql --deploy
142
+ ```
143
+
144
+ The deploy step signs you in with `prisma-cli auth login` if you are not signed in yet, creates or links a Prisma project, then runs `prisma-cli app deploy` to build your app and print its URL. When you scaffold a PostgreSQL app and have not supplied your own `DATABASE_URL`, the deploy provisions a Prisma Postgres database and wires it to the app. A `compute:deploy` script is added so you can redeploy from the project later.
145
+
146
+ The browser sign-in needs a person at the keyboard, so the deploy step is skipped in non-interactive runs unless a session already exists.
147
+
132
148
  ## Local Development
133
149
 
134
150
  ```bash
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "./create-yihruvVK.mjs";
2
+ import "./create-BJ8wReFa.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -1964,7 +1964,7 @@ async function getAnonymousId() {
1964
1964
  }
1965
1965
  function getCommonProperties() {
1966
1966
  return {
1967
- "cli-version": "0.4.2-pr.34.117.1",
1967
+ "cli-version": "0.4.2-pr.34.118.1",
1968
1968
  "node-version": process.version,
1969
1969
  platform: process.platform,
1970
1970
  arch: process.arch
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-yihruvVK.mjs";
2
+ import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-BJ8wReFa.mjs";
3
3
  import { os } from "@orpc/server";
4
4
  import { createCli } from "trpc-cli";
5
5
 
6
6
  //#region src/index.ts
7
- const CLI_VERSION = "0.4.2-pr.34.117.1";
7
+ const CLI_VERSION = "0.4.2-pr.34.118.1";
8
8
  const router = os.router({ create: os.meta({
9
9
  description: "Create a new project with Prisma setup",
10
10
  default: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.4.2-pr.34.117.1",
3
+ "version": "0.4.2-pr.34.118.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma 7 projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",