Work on a project from Studio in your own editor: pull its files, run it, and push your edits back to the same branch.
Before you start
You need a project. See Create a project.
Pull and push a project
- Sign in. In a terminal without a browser, such as CI, set
VERYFRONT_API_KEYto an API key instead:Shellnpx veryfront@latest login - Pull the project into a new folder. In Studio, Code in the header shows these commands with the slug filled in; the slug is also on the project's Settings page:
Shell
mkdir support-desk && cd support-desknpx veryfront@latest pull <slug> - Answer
yto "Continue? [y/N]". You should see✓ Pulled 10 files from <slug> (main). Without a terminal, such as in CI or a coding agent, add--yestopullinstead. - Change the heading in
app/page.tsx, from "Welcome to Veryfront" to "Support desk". - Run the project.
devalso syncs your edits to the project'smainbranch, and keeps running until you stop it:Shellnpx veryfront@latest dev - Open the address it prints after
✓ App ready, usually localhost:3000. You should see the "Support desk" heading. - Stop
devwith Ctrl+C. - Push your changes. It prints
✓ Main is up to datewhendevhas already synced them, then the project's Studio and preview addresses:Shellnpx veryfront@latest push - Open the project's Files in Studio. You should now see your change in
app/page.tsx.
Try it in a sandbox
Setup: a project with files on main
Pull the project into a new folder
Change the heading
Run the project
Open it
Push your changes
Check it
Try it out
Troubleshooting
If you see "Pull requires confirmation … Re-run with --yes", pull ran without a terminal to answer it. Add --yes to pull.