Package Exports
- zvault
- zvault/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zvault) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.gittogit@github.com: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