@prisma/cli 8.0.0-rc.33-dev.186 → 8.0.0-rc.34-dev.188

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.
Files changed (2) hide show
  1. package/dist/cli.js +28 -15
  2. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -14455,21 +14455,32 @@ const skillsCommandFamily = defineCommandFamily({
14455
14455
  });
14456
14456
  //#endregion
14457
14457
  //#region src/v7-redirects.ts
14458
- function v7Command(from, entry) {
14458
+ function kebabCase(flag) {
14459
+ return flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
14460
+ }
14461
+ function withPrisma7Install(reason, invocation) {
14462
+ return `${reason} To keep using Prisma 7, install its CLI with \`npm install --save-dev @prisma/prisma7@7\` and run \`prisma7 ${invocation}\`.`;
14463
+ }
14464
+ function withPlaceholder(invocation, placeholder) {
14465
+ return placeholder === void 0 ? invocation : `${invocation} ${placeholder}`;
14466
+ }
14467
+ function v7Command(from, { placeholder, ...entry }) {
14459
14468
  return {
14460
14469
  from,
14461
14470
  code: "CLI.V7_COMMAND",
14462
14471
  summary: `\`{bin} ${from}\` is a Prisma 7 command and is not available in Prisma 8`,
14463
- ...entry
14472
+ ...entry,
14473
+ reason: withPrisma7Install(entry.reason, withPlaceholder(from, placeholder))
14464
14474
  };
14465
14475
  }
14466
- function v7Flag(command, flag, entry) {
14476
+ function v7Flag(command, flag, { placeholder, ...entry }) {
14467
14477
  return {
14468
14478
  from: command,
14469
14479
  flag,
14470
14480
  code: "CLI.V7_FLAG",
14471
- summary: `\`--${flag.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`,
14472
- ...entry
14481
+ summary: `\`--${kebabCase(flag)}\` on \`{bin} ${command}\` is a Prisma 7 flag and is not available in Prisma 8`,
14482
+ ...entry,
14483
+ reason: withPrisma7Install(entry.reason, withPlaceholder(`${command} --${kebabCase(flag)}`, placeholder))
14473
14484
  };
14474
14485
  }
14475
14486
  const INIT_SCHEMA_REASON = "`init` prepares this repository for Prisma: it writes prisma.config.ts, adds prisma as a dev dependency and installs the AI-agent skills. It sets up no database schema or client; `orm init` does that.";
@@ -14494,12 +14505,13 @@ const v7CommandFamily = defineCommandFamily({
14494
14505
  reason: "No command starts an MCP (Model Context Protocol) server for AI tools."
14495
14506
  }),
14496
14507
  v7Command("complete", {
14508
+ placeholder: "<shell>",
14497
14509
  docsUrl: CLI_DOCS_URL,
14498
14510
  reason: "This CLI has no shell completion: no command prints or installs a completion script for your shell."
14499
14511
  }),
14500
14512
  v7Command("platform status", {
14501
14513
  docsUrl: CLI_DOCS_URL,
14502
- reason: "No command reports the status of your Prisma Platform account. The docs list the commands that inspect workspaces, Projects and databases."
14514
+ reason: "No command reports whether Prisma Data Platform services are up."
14503
14515
  }),
14504
14516
  v7Command("postgres link", {
14505
14517
  replacement: ["{bin} project link", "{bin} postgres connection create <database>"],
@@ -14516,17 +14528,18 @@ const v7CommandFamily = defineCommandFamily({
14516
14528
  help: "init",
14517
14529
  reason: "`--skills=none` skips installing the AI-agent skills and records in prisma.config.ts that none are wanted, so later installs do not add them."
14518
14530
  }),
14519
- ...[
14520
- "datasourceProvider",
14521
- "generatorProvider",
14522
- "previewFeature",
14523
- "output",
14524
- "url",
14525
- "withModel"
14526
- ].map((flag) => v7Flag("init", flag, {
14531
+ ...Object.entries({
14532
+ datasourceProvider: "<provider>",
14533
+ generatorProvider: "<provider>",
14534
+ previewFeature: "<feature>",
14535
+ output: "<path>",
14536
+ url: "<url>",
14537
+ withModel: void 0
14538
+ }).map(([flag, placeholder]) => v7Flag("init", flag, {
14527
14539
  replacement: "{bin} orm init",
14528
14540
  help: "orm init",
14529
- reason: INIT_SCHEMA_REASON
14541
+ reason: INIT_SCHEMA_REASON,
14542
+ placeholder
14530
14543
  }))
14531
14544
  ]
14532
14545
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli",
3
- "version": "8.0.0-rc.33-dev.186",
3
+ "version": "8.0.0-rc.34-dev.188",
4
4
  "description": "Command-line interface for the Prisma Developer Platform.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,10 +41,10 @@
41
41
  "dependencies": {
42
42
  "@manypkg/tools": "^2.1.2",
43
43
  "@prisma/cli-engine": "0.10.0",
44
- "@prisma/composer-cli": "0.38.0-dev.4",
44
+ "@prisma/composer-cli": "0.39.0-dev.1",
45
45
  "@prisma/compute-sdk": "0.43.0",
46
46
  "@prisma/management-api-sdk": "1.80.0",
47
- "@prisma/orm-toolchain": "8.0.0-rc.23-dev.14",
47
+ "@prisma/orm-toolchain": "8.0.0-rc.24-dev.3",
48
48
  "@vercel/detect-agent": "^1.2.3",
49
49
  "better-result": "^2.9.2",
50
50
  "cross-spawn": "^7.0.6",
@@ -53,11 +53,11 @@
53
53
  "open": "^11.0.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@prisma/composer": "0.38.0-dev.4",
56
+ "@prisma/composer": "0.39.0-dev.1",
57
57
  "@prisma/credentials-store": "^7.8.0",
58
- "@repo/cli-conformance": "8.0.0-rc.33-dev.186",
59
- "@repo/cli-telemetry": "8.0.0-rc.33-dev.186",
60
- "@repo/tsconfig": "8.0.0-rc.33-dev.186",
58
+ "@repo/cli-conformance": "8.0.0-rc.34-dev.188",
59
+ "@repo/cli-telemetry": "8.0.0-rc.34-dev.188",
60
+ "@repo/tsconfig": "8.0.0-rc.34-dev.188",
61
61
  "@types/node": "^22.19.19",
62
62
  "@types/cross-spawn": "^6.0.6",
63
63
  "tsdown": "^0.21.10",