zvault
v1.0.7
Published
ZVault CLI - ZenVault Developer Experience Dashboard. Clone repos, inject env vars, open docs with one command.
Maintainers
Readme
ZVault CLI
CLI tool for the ZenVault Developer Experience Dashboard.
Installation
# Install globally from npm
npm install -g zvault
# Or use directly with npx
npx zvaultPrerequisites
GitHub Authentication (for private repos)
If you're cloning private repositories, you need to be authenticated with GitHub:
# Install GitHub CLI
sudo apt install gh # Linux
brew install gh # macOS
# Login to GitHub
gh auth loginOr use SSH URLs for your repositories instead of HTTPS:
- Change
https://github.com/user/repo.gitto[email protected]:user/repo.git
Usage
Login
Authenticate with your ZVault access token:
npx zvault loginThis will prompt you for:
- Your access token (generate from Settings > Access Tokens)
- The API URL (default: https://zenvault.tech)
Pull
Pull a project with environment variables and resources:
npx zvault pull <project-name>
# Specify environment
npx zvault pull backend --env production
# Auto-fix .gitignore for security
npx zvault pull --auto-gitignoreThis command will:
- Clone the repository (or pull if exists)
- Create a
.envfile with decrypted environment variables - Add
.envto.gitignore(with--auto-gitignore) - Open all linked resources in your browser
Push
Push local environment variables to ZVault:
npx zvault pushRefresh
Sync latest environment variables:
npx zvault refreshStatus
Check for environment variable drift:
npx zvault statusRun
Run a command with secrets injected:
npx zvault run -- npm startConfiguration
Configuration is stored in ~/.zvault/config.json:
{
"token": "zvl_...",
"apiUrl": "https://zenvault.tech"
}Troubleshooting
"Username for 'https://github.com'" prompt
This means GitHub authentication is needed. See the Prerequisites section above.
".env is not in your .gitignore"
This is a security feature. Use --auto-gitignore flag to automatically fix:
npx zvault pull --auto-gitignore