Secrets
Get a Secret
Section titled “Get a Secret”passbox get <name> [options]Retrieves and decrypts a secret value.
Options
Section titled “Options”| Option | Description |
|---|---|
--vault <name> | Vault name or ID |
--env <name> | Environment name (e.g., staging, production) |
Examples
Section titled “Examples”passbox get DATABASE_URLpassbox get API_KEY --vault my-app --env productionSet a Secret
Section titled “Set a Secret”passbox set <name> <value> [options]Creates or updates a secret. The value is encrypted client-side before transmission.
Options
Section titled “Options”| Option | Description |
|---|---|
--vault <name> | Vault name or ID |
--env <name> | Environment name |
--description <text> | Optional description |
Examples
Section titled “Examples”passbox set DATABASE_URL "postgres://user:pass@host/db"passbox set API_KEY "sk-abc123" --env production --description "OpenAI API key"Delete a Secret
Section titled “Delete a Secret”passbox delete <name> [options]Permanently deletes a secret. Requires admin or owner role.
Options
Section titled “Options”| Option | Description |
|---|---|
--vault <name> | Vault name or ID |
--env <name> | Environment name |
Example
Section titled “Example”passbox delete OLD_API_KEY --vault my-appList Secrets
Section titled “List Secrets”passbox list [options]Lists all secret names in a vault (values are not shown).
Options
Section titled “Options”| Option | Description |
|---|---|
--vault <name> | Vault name or ID |
--env <name> | Environment name |
Example
Section titled “Example”passbox list --vault my-app --env production# DATABASE_URL v3 2024-01-15# API_KEY v1 2024-01-10# REDIS_URL v2 2024-01-12View Secret History
Section titled “View Secret History”passbox history <name> [options]Shows the version history of a secret, including when each version was created.
Options
Section titled “Options”| Option | Description |
|---|---|
--vault <name> | Vault name or ID |
--env <name> | Environment name |
Example
Section titled “Example”passbox history DATABASE_URL --vault my-app# Version 3 2024-01-15T10:30:00Z# Version 2 2024-01-10T08:15:00Z# Version 1 2024-01-05T14:00:00Z