Commands
Complete reference for all cred commands.
Project Management
| Command | Description |
|---|---|
cred init | Initialize a new cred project |
cred status | Show vault, sources, and targets overview |
cred doctor | Check project health |
Secrets
| Command | Description |
|---|---|
cred secret set | Add or update a secret |
cred secret get | Retrieve a secret value |
cred secret list | List all secrets |
cred secret remove | Delete a secret from vault |
cred secret describe | Update a secret’s description |
cred secret history | View version history for a secret |
cred secret rollback | Restore a previous version |
cred import | Import from .env file |
cred export | Export to .env file |
Environments
| Command | Description |
|---|---|
cred env list | List all environments |
cred env create | Create a new environment |
cred env delete | Delete an environment and its secrets |
Deployment
| Command | Description |
|---|---|
cred push | Push secrets to a target |
cred prune | Delete secrets from a target |
Sources
| Command | Description |
|---|---|
cred source add | Add a credential source |
cred source generate | Generate a new credential |
cred source keys | List keys at the source |
cred source delete | Delete a generated key |
cred source list | List configured sources |
cred source revoke | Remove source and all its keys |
Targets
| Command | Description |
|---|---|
cred target set | Authenticate with a target |
cred target bind | Bind target identifier to project |
cred target list | List configured targets |
cred target revoke | Remove a target’s token |
Configuration
| Command | Description |
|---|---|
cred config list | View all configuration |
cred config get | Get a config value |
cred config set | Set a config value |
cred config unset | Remove a config value |
Global Flags
All commands support these flags:
| Flag | Description |
|---|---|
--json | Machine-readable JSON output |
--non-interactive | Fail instead of prompting for input |
--dry-run | Preview changes without applying them |
--help | Show help for any command |