CLI Reference
Complete reference for all KeyEnv CLI commands.
CLI Reference
The KeyEnv CLI provides commands for managing secrets from your terminal.
Global Options
These options work with all commands:
| Option | Description |
|---|---|
--json | Output JSON instead of human-readable text |
-q, --quiet | Minimize output (only essential info) |
--no-color | Disable colored output |
-v, --verbose | Enable verbose output |
-h, --help | Print help information |
-V, --version | Print version |
Command Categories
Authentication
Projects
Secrets
pull- Pull secrets from serverpush- Push secrets to serverlist- List all secretsget- Get a secret valueset- Set a secret valuedelete- Delete a secretexport- Export secrets to various formats
Workflow
run- Run command with secretsdiff- Compare local and remote secretshistory- View secret history
Security
scan- Scan for hardcoded secrets in your codebase
Tokens
tokens list- List all service tokenstokens create- Create a new service tokentokens revoke- Revoke a service tokentokens rotate- Rotate a service token
Teams
team list- List your teamsteam show- Show team details and membersteam invite- Invite a member to a teamteam role- Update a member's roleteam remove- Remove a member from a team
Rotations
rotations- Manage secret rotation configurations
Update
update check- Check for CLI updatesupdate install- Install the latest CLI version
Utility
completions- Generate shell completion scripts
See the full reference for all commands on a single page.