CLI
The DepVault CLI (depvault) syncs your repo’s secret files and analyzes dependencies. It’s a single self-contained native binary (.NET 10 Native AOT) with no runtime dependencies.
Installation
Quick Install
Linux / macOS:
curl -fsSL https://get.depvault.com | bashWindows (PowerShell):
irm https://get.depvault.com | iexThe installer detects your platform, downloads the latest release to ~/.depvault/bin/, and adds it to PATH. Set DEPVAULT_INSTALL_DIR to install elsewhere. Run depvault update later to upgrade in place.
Manual Download
Pre-built binaries are on the GitHub Releases page:
| Platform | Archive |
|---|---|
| Linux x64 | depvault-linux-x64.tar.gz |
| Linux ARM64 | depvault-linux-arm64.tar.gz |
| macOS x64 | depvault-osx-x64.tar.gz |
| macOS ARM64 | depvault-osx-arm64.tar.gz |
| Windows x64 | depvault-win-x64.zip |
Build from Source
Requires the .NET 10 SDK .
git clone https://github.com/suxrobGM/depvault.git
cd depvault/apps/cli
dotnet publish -c Release -r <rid> # linux-x64, linux-arm64, osx-x64, osx-arm64, win-x64First Run
depvault login # browser sign-in
cd my-repo
depvault init # link the repo to a project, writes .depvault.json
depvault push # upload the repo's secret filesRun depvault doctor any time: it checks the server, login, vault, project link, and encryption key, and prints the exact command to fix anything missing.
Commands
| Command | Description |
|---|---|
depvault login / logout / whoami | Sign in with the browser device flow |
depvault unlock / lock | Unlock the vault on this device, or forget it |
depvault init | Link this folder to a project |
depvault status | Show what differs from DepVault |
depvault push | Upload local changes |
depvault pull | Download server changes (also the CI command) |
depvault untrack | Stop syncing a file |
depvault log / diff / restore | Browse a file’s history and bring back an old version |
depvault purge | Delete local copies of synced files |
depvault project | Show the linked project and list your projects |
depvault analyze | Analyze dependency files |
depvault scan | Scan the repo for leaked secrets, vulnerabilities, and unsynced secret files |
depvault doctor | Diagnose setup and print next steps |
depvault config | Show or change the server (config set server <url>, config get server) |
depvault update | Update the CLI to the latest release (verified against the release checksums) |
depvault version | Print the CLI version |
Run depvault alone for your current folder, account, vault, and project, or depvault <command> --help for every flag.
Scripting
Results go to stdout; warnings and errors go to stderr. status, push, pull, log, project, analyze, and scan take --json to print a single JSON document on stdout. With --json the CLI never prompts, so pass --yes where a command would ask.
| Exit code | Meaning |
|---|---|
0 | Success |
1 | Error |
2 | Invalid usage (unknown option, bad value, a prompt was needed but there’s no terminal) |
3 | Conflict: the server copy changed; nothing was overwritten |
4 | scan --fail-on found an issue at or above the threshold |
130 | Cancelled |
Configuration
Settings are per machine; the project is per repo (.depvault.json). Stored logins belong to the server they were made against, so after changing the server run depvault login again.
depvault config set server https://depvault.example.com| Variable | Purpose |
|---|---|
DEPVAULT_TOKEN | CI token; switches the CLI to CI mode |
DEPVAULT_PASSWORD | Vault password for non-interactive use as yourself |
DEPVAULT_HOME | CLI config folder (default ~/.depvault) |
DEPVAULT_INSTALL_DIR | Install location for the install script |
NO_COLOR | Disable colored output |
Removed commands and flags
- The interactive REPL,
clear,--output table|json(use--json), andconfig set output. - From the sync release:
depvault ci pull(usedepvault pullwithDEPVAULT_TOKEN),project select/create/infoandconfig set project(usedepvault init), the--app,--environment,--include-base,--include-secrets,--output-dir, and--formatflags,unlock --remember/--ttl, and the upload steps inscan.