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
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@manypkg/tools": "^2.1.2",
"@prisma/cli-engine": "workspace:0.9.0",
"@prisma/composer-cli": "0.35.0",
"@prisma/composer-cli": "0.36.0",
"@prisma/compute-sdk": "0.43.0",
"@prisma/management-api-sdk": "1.80.0",
"@prisma/orm-toolchain": "8.0.0-rc.21",
Expand All @@ -62,7 +62,7 @@
"open": "^11.0.0"
},
"devDependencies": {
"@prisma/composer": "0.35.0",
"@prisma/composer": "0.36.0",
"@prisma/credentials-store": "^7.8.0",
"@repo/cli-conformance": "workspace:8.0.0-rc.29",
"@repo/cli-telemetry": "workspace:8.0.0-rc.29",
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/tests/composer-mount.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const ONE_INSTANCE = listing([
labels: {
"composer.address": "gateway",
"composer.directory": "/projects/shop",
"composer.environment": "dev",
},
},
],
Expand Down Expand Up @@ -92,6 +93,7 @@ const listDeployed: ListDeployed = async () => ({
});

const COMPOSER_PATHS = [
"deploy",
"deploy list",
"dev",
"dev url",
Expand Down Expand Up @@ -177,7 +179,7 @@ describe("Composer's commands in the shell", () => {

expect(result.exitCode).toBe(0);
expect(result.stdout).toBe(
"service\tsvc_gateway\thttp://localhost:4001\trunning\tgateway\t/projects/shop\n",
"service\tsvc_gateway\thttp://localhost:4001\trunning\tgateway\t/projects/shop\tdev\n",
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@manypkg/tools": "^2.1.2",
"@prisma/cli-engine": "workspace:0.9.0",
"@prisma/composer-cli": "0.35.0",
"@prisma/composer-cli": "0.36.0",
"@prisma/compute-sdk": "0.43.0",
"@prisma/management-api-sdk": "1.80.0",
"@prisma/orm-toolchain": "8.0.0-rc.21",
Expand Down
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

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

22 changes: 11 additions & 11 deletions skills/prisma-platform-core-concepts/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ branch is the environment, and branches come into being by deploying to them:
1. **Push a git branch** (with the GitHub integration connected and the
deploy workflow in the repository): the workflow builds and deploys, and
the platform creates the branch environment on the fly.
2. **Deploy a stage from the CLI**: `prisma deploy --stage pr-42`
2. **Deploy an environment from the CLI**: `prisma deploy --environment pr-42`
creates a branch named `pr-42` and deploys the identical app graph into
it. A stage name must be a valid git ref name; an invalid name is a hard
error.
it. An environment name must be a valid git ref name; an invalid name is
a hard error.

A preview branch that needs a database gets a fresh, empty one, wired in as a
branch-scoped `DATABASE_URL`. Preview work can never touch production data
Expand Down Expand Up @@ -209,10 +209,10 @@ Opening a pull request does not itself deploy anything; previews track
branch pushes. A connected repository without the workflow gets branch
bookkeeping and preview teardown from the platform, and no builds.

**CLI.** `prisma deploy` deploys production directly; add `--stage <name>`
**CLI.** `prisma deploy` deploys production directly; add `--environment <name>`
for a preview. It deploys the entry file named by `entry` in the `composer`
section of `prisma.config.ts`; `--entry <path>` overrides it. `prisma deploy
list` (same `--stage`) lists each deployed node's address, kind, platform ID
list` (same `--environment`) lists each deployed node's address, kind, platform ID
and URL. Authenticate once with `prisma auth login`
(interactive), or set `PRISMA_SERVICE_TOKEN` (plus `PRISMA_WORKSPACE_ID`
when the token can see more than one workspace) for CI and other headless
Expand Down Expand Up @@ -372,7 +372,7 @@ own work:
shows every local instance on the machine.
4. Deploying is the same pipeline pointed at the platform: switching from
local to hosted is a configuration change, not a code change. Reach for
`prisma deploy --stage <name>` only when you need a shareable URL or
`prisma deploy --environment <name>` only when you need a shareable URL or
platform behaviour (sleeping, real DNS, production-like config).
5. For pure frontend iteration the framework's own dev server also works;
the Composer local stack is what mirrors the deployed wiring.
Expand All @@ -397,8 +397,8 @@ Windows is not supported for the local stack yet.
6. **Production shows a stale value after an environment-variable change.**
Variables are resolved at deploy time. Re-deploy (or promote) so the new
value is picked up.
7. **A stage name is rejected.** Stage names must be valid git ref names;
rename it.
7. **An environment name is rejected.** Environment names must be valid git
ref names; rename it.
8. **A resource disappeared from the platform after a deploy.** It was
removed from `module.ts`; the module is the source of truth and deploy
converges to it. Restore the declaration and re-deploy.
Expand All @@ -422,9 +422,9 @@ Windows is not supported for the local stack yet.
Name the gap instead of inventing an API:

1. **No branch create or delete from the CLI.** The `branch` group only
lists. Branches are created by pushing or by deploying a stage, and
removed by deleting the upstream git branch; there is no CLI teardown
verb for a stage yet.
lists. Branches are created by pushing or by deploying an environment,
and removed by deleting the upstream git branch; there is no CLI teardown
verb for an environment yet.
2. **No build retry.** A failed build is finished; the retry is the next
push or the next deploy.
3. **No reading environment-variable values back**, anywhere. This is a
Expand Down
Loading