The CLI pushes your local project to a preview, then deploys it to an environment, in a terminal or in CI.
Before you start
You need a project on your machine, pulled from Studio or made with npm create veryfront. See Work locally.
Deploy from the terminal
- If the project isn't on Veryfront yet, create it and publish its preview.
uplinks or creates the project and pushesmain:Shellnpx veryfront up - After you change files, update the preview:
Shell
npx veryfront push - Deploy to an environment:
Shell
npx veryfront deploy --env staging - Read the output. You should now see
Deployed … to stagingand the release's version.
In CI there is no browser to sign in with: set VERYFRONT_API_KEY to an API key and run the same commands. deploy without --env targets production.