Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

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.

bun
bunx prisma dev module.ts
bunx prisma dev module.ts --fresh
pnpm
pnpm prisma dev module.ts
pnpm prisma dev module.ts --fresh
yarn
yarn prisma dev module.ts
yarn prisma dev module.ts --fresh
npm
npx 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.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu