CLI reference
Pull
Choose an environment version, decrypt it locally, and protect existing files from accidental overwrite.
Usage
Pull queries the chosen repository and exact directory. When multiple files are available, the interactive CLI asks for a version. An empty directory value targets the repository root.
varte pull -o your-team -r api -d server --output .envOptions
| Option | Purpose |
|---|---|
-o, --owner <owner> | Repository owner |
-r, --repo <repo> | Repository name |
-d, --directory <directory> | Exact directory label; root by default |
-n, --name <name> | Select an exact stored environment name |
--output <path> | Destination on your device |
--force | Replace an existing regular file intentionally |
Use pull in scripts
For a script, provide --name to select a saved file and --output to set its destination. If multiple versions use that name, the newest matching version is selected. Use the interactive chooser when you need an older version.
varte pull -o your-team -r api -d server --name .env.production --output .env.productionExisting files are protected
If the destination already exists, an interactive run asks for confirmation. Noninteractive runs fail unless --force is provided. The CLI rejects symlink and non-regular destinations even with --force.
varte pull -o your-team -r api --name .env.production --output .env --force Default output names
When --output is omitted, varte uses a sanitized version of the stored name. Characters that are invalid in common filesystems are replaced with underscores. In an interactive terminal, you can change this name before saving. Parent directories must already exist.
Vathavaran v2 · Guides for your terminal, browser, and phone.