Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Global flags (/docs/cli/global-flags)

For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL.

Flags accepted by every command in the unified Prisma CLI.

Location: CLI > Global flags

All commands in the unified Prisma CLI accept these flags.

Flag What it does
--json Print machine-readable output (shorthand for --format json). Use this in CI and scripts.
--format <mode> Output format: human, json, or markdown.
--log-level <level> Commentary verbosity: error, warn, info, or verbose.
-q, --quiet Suppress nonessential output (shorthand for --log-level error).
-v, --verbose Print more detail (shorthand for --log-level verbose).
--color / --no-color Force colored output on or off.
--interactive / --no-interactive Force prompts on or off.
-y, --yes Accept prompt defaults without asking.
--confirm <token> Grant a consent prompt in advance by giving its token, so the command does not ask (repeatable). Works in scripts and in an interactive terminal.
--config <path> Read this config file instead of ./prisma.config.ts.
-h, --help Print the manual for a command: what it does, its options, a workflow where one applies, and examples.
--version Print the CLI version and exit.

Without --format, a terminal gets human output and a pipe gets json. markdown is never chosen for you; pass --format markdown to get it.

markdown is for AI agents that read command output as text rather than parsing JSON. It prints the same content as human, as plain Markdown: a summary line, label: value lines, pipe tables, bullet lists, and fenced code, followed by a ### Next section with the suggested next commands and a ### Diagnostics section with any findings. There is no padding, alignment, or color, and no JSON envelope. Everything the command produces, including errors, help, --version, and progress, goes to stdout, so an agent reads one stream.

Use npx prisma <command> --help when you need the exact command help from the installed version.

The output modes and the JSON envelope these flags select are documented on Configuration.

  • auth: Sign in to your Prisma account from the CLI, sign out, and manage workspace sessions.
  • branch: List platform branches for a project.
  • bucket: Create and manage object-store buckets.
  • Configuration: Configure Prisma ORM CLI commands with prisma.config.ts and global flags.
  • contract emit: Emit Prisma ORM contract artifacts.
Suggest an edit

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

Export
Documentation menu