sbx secret ls
| Description | List stored secrets |
| Usage | sbx secret ls [flags] |
Description
List stored secrets across global and sandbox scopes.
With no scope flag, all stored secrets are shown. Use --global to show only global secrets, or --sandbox to show only secrets scoped to one sandbox.
Options
| Option | Default | Description |
|---|---|---|
--format |
Output format: table, json or yaml | |
-g, --global |
Only list global secrets | |
--json |
Output in JSON format | |
-q, --quiet |
Only display secret names | |
--sandbox |
Only list secrets for one sandbox | |
--service |
Filter by secret service name |
Global options
| Option | Default | Description |
|---|---|---|
--cloud |
Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list) | |
-D, --debug |
Enable debug logging |
Examples
## List all secrets
sbx secret ls
## List only global secrets
sbx secret ls -g
## List secrets for a specific sandbox
sbx secret ls --sandbox my-sandbox
## Filter by service
sbx secret ls --service github
## Machine-readable output for scripting
sbx secret ls --json
Table of contents
