CLI Installation
Install
Section titled “Install”npm install -g paboxpnpm add -g paboxyarn global add paboxVerify Installation
Section titled “Verify Installation”passbox --version# 0.1.0Configuration
Section titled “Configuration”PassBox stores configuration in ~/.passbox/:
| File | Purpose |
|---|---|
~/.passbox/config.json | Server URL, default vault, default environment |
~/.passbox/auth.json | Access token, refresh token, encrypted master key (mode 0600) |
Set Server URL
Section titled “Set Server URL”passbox config set server https://api.passbox.devSet Default Vault
Section titled “Set Default Vault”passbox config set defaultVault my-appSet Default Environment
Section titled “Set Default Environment”passbox config set defaultEnvironment productionView Current Config
Section titled “View Current Config”passbox config get serverpassbox config get defaultVaultProject Configuration
Section titled “Project Configuration”Create a .passbox.json in your project root to set per-project defaults:
passbox initThis generates:
{ "vault": "my-app", "environment": "development"}Project config takes precedence over global config. Add .passbox.json to version control so your team shares the same defaults.
Self-Hosted Server
Section titled “Self-Hosted Server”If running your own PassBox server:
passbox config set server https://your-passbox-server.comOr set it per-project in .passbox.json:
{ "vault": "my-app", "server": "https://your-passbox-server.com"}Command Overview
Section titled “Command Overview”| Command | Description |
|---|---|
passbox login | Authenticate with email + password |
passbox logout | Clear local session |
passbox whoami | Show current user |
passbox init | Create project config |
passbox vault | Manage vaults (list, create, delete) |
passbox get | Retrieve a secret |
passbox set | Store a secret |
passbox delete | Delete a secret |
passbox list | List secrets in a vault |
passbox history | View secret version history |
passbox env | Push/pull .env files |
passbox environment | Manage environments |
passbox import | Import secrets from files |
passbox run | Run command with secrets injected |
passbox member | Manage vault members |
passbox token | Manage service tokens |
passbox webhook | Manage webhooks |
passbox rotation | Manage secret rotation |
passbox account | Account management |
passbox config | View/set CLI config |
passbox serve | Start MCP server |