Reference
Automation
Use the CLI in scripts with explicit selections and structured output.
Read structured file information
Use --json when a script needs structured output. Choose the repository explicitly so the script does not depend on its working directory.
varte list -o your-team -r api --json Choose a file without a prompt
Set the repository, directory, saved name, and destination explicitly. If several versions share the same name, the newest matching version is selected.
varte pull -o your-team -r api -d backend --name .env.production --output .envReplace a destination intentionally
Use --force only when your script is meant to replace an existing file. Keep the destination out of version control. Symlinks and non-regular destinations are rejected.
varte pull -o your-team -r api -d backend --name .env.production --output .env --force Check command results
A failed command returns a nonzero exit code. Stop dependent steps when a pull fails. An empty list is successful and means there are no saved files in the selected scope.
Vathavaran v2 · Guides for your terminal, browser, and phone.