Edit files

Edit any file in a project from Studio or with veryfront files. Studio saves to the branch you are on.

Before you start

You need a project. See Create a project.

Edit a file

If the project is in a folder on your machine, edit the file there and run npx veryfront push. See Work locally. Otherwise:

  1. Set SLUG to your project's slug, from its Settings page: export SLUG=<slug>.
  2. Download the file:
    Shell
    npx veryfront files get app/page.tsx --project $SLUG --output app/page.tsx
  3. Change the heading in your editor, from "Welcome to Veryfront" to "Support desk".
  4. Upload it:
    Shell
    npx veryfront files put app/page.tsx --project $SLUG --from app/page.tsx
  5. Read the file back. You should now see the heading read "Support desk":
    Shell
    npx veryfront files get app/page.tsx --project $SLUG

Try it in a sandbox

  1. The project the page assumes

  2. Set SLUG

  3. Download the file

  4. Change the heading

  5. Upload it

  6. Check it

Try it out

Troubleshooting

If you see "Project … not found" with the name of your folder, the command ran without --project, so it took the folder's name as the slug. Add --project $SLUG.

Find and replace

  1. Click Search.
  2. Enter "Documentation" in Search.
  3. Click Show replace.
  4. Enter "Help center" in Replace.
  5. Click Replace all.
  6. Click Replace. You should now see "Replacements complete" and the link read "Help center". The file stays unsaved until you save it.

Next steps