Skip to Content
CLICLI

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 | bash

Windows (PowerShell):

irm https://get.depvault.com | iex

The 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:

PlatformArchive
Linux x64depvault-linux-x64.tar.gz
Linux ARM64depvault-linux-arm64.tar.gz
macOS x64depvault-osx-x64.tar.gz
macOS ARM64depvault-osx-arm64.tar.gz
Windows x64depvault-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-x64

First 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 files

Run 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

CommandDescription
depvault login / logout / whoamiSign in with the browser device flow
depvault unlock / lockUnlock the vault on this device, or forget it
depvault initLink this folder to a project
depvault statusShow what differs from DepVault
depvault pushUpload local changes
depvault pullDownload server changes (also the CI command)
depvault untrackStop syncing a file
depvault log / diff / restoreBrowse a file’s history and bring back an old version
depvault purgeDelete local copies of synced files
depvault projectShow the linked project and list your projects
depvault analyzeAnalyze dependency files
depvault scanScan the repo for leaked secrets, vulnerabilities, and unsynced secret files
depvault doctorDiagnose setup and print next steps
depvault configShow or change the server (config set server <url>, config get server)
depvault updateUpdate the CLI to the latest release (verified against the release checksums)
depvault versionPrint 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 codeMeaning
0Success
1Error
2Invalid usage (unknown option, bad value, a prompt was needed but there’s no terminal)
3Conflict: the server copy changed; nothing was overwritten
4scan --fail-on found an issue at or above the threshold
130Cancelled

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
VariablePurpose
DEPVAULT_TOKENCI token; switches the CLI to CI mode
DEPVAULT_PASSWORDVault password for non-interactive use as yourself
DEPVAULT_HOMECLI config folder (default ~/.depvault)
DEPVAULT_INSTALL_DIRInstall location for the install script
NO_COLORDisable colored output

Removed commands and flags

  • The interactive REPL, clear, --output table|json (use --json), and config set output.
  • From the sync release: depvault ci pull (use depvault pull with DEPVAULT_TOKEN), project select/create/info and config set project (use depvault init), the --app, --environment, --include-base, --include-secrets, --output-dir, and --format flags, unlock --remember/--ttl, and the upload steps in scan.