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:
- Set
SLUGto your project's slug, from its Settings page:export SLUG=<slug>. - Download the file:
Shell
npx veryfront files get app/page.tsx --project $SLUG --output app/page.tsx - Change the heading in your editor, from "Welcome to Veryfront" to "Support desk".
- Upload it:
Shell
npx veryfront files put app/page.tsx --project $SLUG --from app/page.tsx - 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
The project the page assumes
Set SLUG
Download the file
Change the heading
Upload it
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
- Click Search.
- Enter "Documentation" in Search.
- Click Show replace.
- Enter "Help center" in Replace.
- Click Replace all.
- Click Replace. You should now see "Replacements complete" and the link read "Help center". The file stays unsaved until you save it.