Preview of the unified Prisma CLI.
This repository contains the unified Prisma command-line experience. The current implementation focuses on app deployment workflows while preserving the long-term command model for Prisma projects, branches, schemas, databases, and apps.
Preview releases use @prisma/cli under the preview dist-tag during early
development. The package exposes a prisma-cli binary so it can coexist with
the existing prisma executable.
pnpm add -D @prisma/cli@preview
pnpm prisma-cli --helpExample workflow:
pnpm prisma-cli auth login
pnpm prisma-cli app deploy --env DATABASE_URL=postgresql://example
pnpm prisma-cli app list-envIf you want local project scripts that look like the future command shape, add:
{
"scripts": {
"prisma": "prisma-cli"
}
}Then run:
pnpm prisma app deployRequirements:
- Node.js 20+
- pnpm 10+
Install dependencies:
pnpm installRun the source CLI:
pnpm prisma --helpRun tests:
pnpm testBuild the package:
pnpm build:cliStage the npm package locally without publishing:
pnpm build:cli
pnpm prepare:cli-publishThe CLI groups commands by developer workflow:
authprojectbranchapp
The canonical command shape is:
prisma <group> <action>
The preview package includes app build, run, deploy, environment-variable, deployment inspection, promotion, rollback, and removal commands. The product model intentionally keeps room for future schema, database, and migration workflows without introducing product-specific namespaces.
The public docs start at docs/README.md.
Product behavior is defined in docs/product.
Start here when changing command behavior:
docs/product/resource-model.mddocs/product/command-principles.mddocs/product/command-spec.mddocs/product/cli-style-guide.mddocs/product/output-conventions.mddocs/product/error-conventions.md
See CONTRIBUTING.md for local development and contribution guidance.
See ARCHITECTURE.md for the short architecture entrypoint.
Issues and feedback are welcome while the CLI is in public preview. Pull requests should be tied to an existing issue or maintainer agreement so product behavior, docs, and tests stay aligned.
Please follow CODE_OF_CONDUCT.md in project spaces. Security reports should
use SECURITY.md, not public issues.
Manual smoke apps live in:
examples/hello-worldexamples/next-smoke
They are intentionally not part of the root pnpm workspace. Install dependencies inside an example only when you want to run manual end-to-end checks.
Publishing is intentionally manual and gated through GitHub Actions.
The prerelease line uses 3.0.0-alpha.N. The release workflow is configured to
publish to the preview dist-tag. Do not publish from a local checkout unless
the release owner explicitly asks you to do so.