Work locally

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

  1. Sign in. In a terminal without a browser, such as CI, set VERYFRONT_API_KEY to an API key instead:
    Shell
    npx veryfront@latest login
  2. 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>
  3. Answer y to "Continue? [y/N]". You should see ✓ Pulled 10 files from <slug> (main). Without a terminal, such as in CI or a coding agent, add --yes to pull instead.
  4. Change the heading in app/page.tsx, from "Welcome to Veryfront" to "Support desk".
  5. Run the project. dev also syncs your edits to the project's main branch, and keeps running until you stop it:
    Shell
    npx veryfront@latest dev
  6. Open the address it prints after ✓ App ready, usually localhost:3000. You should see the "Support desk" heading.
  7. Stop dev with Ctrl+C.
  8. Push your changes. It prints ✓ Main is up to date when dev has already synced them, then the project's Studio and preview addresses:
    Shell
    npx veryfront@latest push
  9. Open the project's Files in Studio. You should now see your change in app/page.tsx.

Try it in a sandbox

  1. Setup: a project with files on main

  2. Pull the project into a new folder

  3. Change the heading

  4. Run the project

  5. Open it

  6. Push your changes

  7. 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.

Next steps