Global flags
These work on every command, before or after the command name.--yes and --no-input are not the same thing. --yes answers every prompt affirmatively; --no-input refuses to prompt at all and fails instead. In CI you usually want both: --yes so expected confirmations pass, --no-input so an unexpected one is a failed build rather than a hung job.
--yes never stands in for production access. It answers the question a production change asks before it is sent: a production deploy (Deploy 3f2a91c to production of "My App"? (y/N)), a production rollback (Roll back production of "My App" from 3f2a91c to 8be41d0 (deployed 2026-11-10 09:41)? (y/N)), or a variable set or deleted on production or for all environments (Set STRIPE_KEY in production of "My App"? (y/N)). The change is still refused until a person approves production access in the browser. A production change from CI with a person’s CLI token is not supported: production access is approved in a browser and lasts 12 hours at most. To deploy to production from CI, push to the branch of an automatic deployment.
--json prints the result as one JSON document on stdout, with the human lines on stderr, which is what makes the CLI scriptable. Pair it with --no-input and read the result rather than the log. meridian dev is the exception: its JSON summary is the first line on stdout, and the dev server it starts writes to the same stdout afterwards.
A run without a terminal (a coding agent, CI, piped input, or CI or MERIDIAN_NON_INTERACTIVE set) never prompts. See From a script or an agent.
Errors and exit codes
With
--json, an error is printed on stdout as:
hint is there when the CLI has one, and status when the Meridian API refused the call. The messages you are most likely to meet:
Doctor before the app exists
In a linked project,meridian doctor checks the app through the API (see Readiness checks). In a directory that is not linked to a Meridian app, it checks the repository on your disk instead, so you can tell whether it will deploy and bill on Meridian before you create the app. It needs no sign-in and calls no API.
Every check prints what Meridian will need, in the words of the server’s own checks. The command exits with code 1 when a check fails. With
--json it prints { "linked": false, "root", "ready", "summary", "checks" }, the checks in the same shape as the linked report. Once the app exists, meridian link makes meridian doctor check the app itself (credentials, plans, database, domains).
Files on disk
production_grant_expires_at is for display only (meridian whoami --offline): the API decides whether production access is live, on every request.
project.json is the one to commit. config.json holds your token and belongs to the machine, and snapshots/ is local recovery state. Keep both out of git.
The CLI looks for project.json in the current folder and then in every parent folder up to the filesystem root. --cwd <dir> changes the folder it starts from. When none is found, the error names the folder the search started from. Run meridian link in the project root to fix it.
skip_datasource_check: true in project.json turns off the check that your Prisma datasource matches the app’s engine (mysql or postgresql) and reads DATABASE_URL. Use it only for a schema the check misreads.
Upgrading the CLI
When the Meridian API refuses an old CLI (HTTP 426,cli_upgrade_required), the error shows the version you run, the minimum version when the API states one, and the command to run, then re-run your command:
cli_upgrade_required) and Meridian CLI <version> cannot make production changes. Upgrade it to 1.7.0 or newer: npm install -g @the-meridian/cli@latest. Setting and deleting variables on production or for all environments with meridian env need CLI 1.9.0 or later, and meridian rollback needs 1.10.0 or later.
Environment
Prompts are also skipped when the terminal is not interactive (piped input or output). A command that would have prompted then fails and names the flag to pass.
meridian env set is the one command that reads standard input: when it is piped, it takes the value to set from there. It never reads a value from a terminal without its masked prompt, and never from its arguments. See Environment variables.
meridian dev sets MERIDIAN_DEV_ACTIVE and MERIDIAN_DEV_DATABASE_ID for the command it runs. The SDK reads the database id. Do not set either yourself. It also sets MERIDIAN_APP_ID, MERIDIAN_API_KEY and MERIDIAN_API_URL unless you already provide them, see SDK credentials.
Agent skill
meridian skills install installs the Meridian agent skill and the Meridian MCP config for Claude Code, Codex and Cursor in the current project. See AI coding agents.