dev
Bring a Composer application up entirely on this machine, with no cloud credentials.
dev brings a Prisma Composer application up entirely on this machine. It takes an <entry> argument: the module whose default export is the application root, typically module.ts. The command runs credential-free against local emulators standing in for Prisma Compute and Prisma Postgres, watches the built output, and restarts a service when its build changes. See Local development.
dev and deploy are root-level commands of the unified Prisma CLI. There is no composer command group. Like deploy, dev runs your built output, so build first.
bunx prisma dev module.ts
bunx prisma dev module.ts --freshpnpm prisma dev module.ts
pnpm prisma dev module.ts --freshyarn prisma dev module.ts
yarn prisma dev module.ts --freshnpx prisma dev module.ts
npx prisma dev module.ts --fresh| Flag | Description |
|---|---|
--name <name> |
Override the application name for the local dev instance |
--fresh |
Destroy the dev stack and wipe the dev state directory before starting. In this release the flag fails for apps with a database; see Local development for the manual reset |
dev needs no credentials or environment variables; local runs never talk to the platform.
To tail the running application's merged logs, use the log operation of the control API; the unified CLI has no log command.
Next steps
Section titled “Next steps”- Local development: warm restarts,
--fresh, and what persists. deploy: the same application, on Prisma Compute.