Autoscaling Report: Production databases on Neon use 2.4x less compute and 50% less cost than if they were running on a provisioned platform.
/CLI/deploy

Neon CLI command: deploy

Apply a neon.ts policy to a branch

The deploy command applies a neon.ts policy to a branch. It is a top-level alias of neon config apply, with the same options.

neon deploy [options]
OptionDescriptionTypeDefaultRequired
--allow-protectedAuto-confirm applying to a branch marked protected on NeonbooleanfalseNo
--branchBranch ID or namestringNo
--configPath to a neon.ts policy (defaults to walking up from cwd)stringNo
--envPath to a .env file to load into the environment before evaluating neon.ts (so function env values resolve from it). Existing env vars are not overridden.stringNo
--env-pullPull the branch's Neon env vars (DATABASE_URL, …) into a local .env after a successful apply. On by default; use --no-env-pull to skip (e.g. when injecting env at runtime with neon-env run / neon dev).booleantrueNo
--project-idProject IDstringNo
--update-existingAuto-confirm overriding existing remote settings on the branchbooleanfalseNo

For non-interactive use (scripts, CI, agents), pass --update-existing and --allow-protected to auto-confirm the corresponding prompts.

neon deploy --branch feature/auth --update-existing
Was this page helpful?
Edit on GitHub
Copy neon init command