Commands
token
Manage org auth tokens
Commands
Section titled “Commands”sentry token create <org>
Section titled “sentry token create <org>”Create an org auth token
Arguments:
| Argument | Description |
|---|---|
<org> | Organization slug |
Options:
| Option | Description |
|---|---|
--name <name> | Name for the new token |
sentry token delete <org> <token-id>
Section titled “sentry token delete <org> <token-id>”Delete an org auth token
Arguments:
| Argument | Description |
|---|---|
<org> | Organization slug |
<token-id> | Token ID or name |
Options:
| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
-f, --force | Force the operation without confirmation |
-n, --dry-run | Show what would happen without making changes |
sentry token list <org>
Section titled “sentry token list <org>”List org auth tokens
Arguments:
| Argument | Description |
|---|---|
<org> | Organization slug |
All commands support --json for machine-readable output and --fields to select specific JSON fields.
Examples
Section titled “Examples”# List org auth tokenssentry token list my-org
# Create a new tokensentry token create my-org --name 'CI deploy token'
# Delete a token by IDsentry token delete my-org 12345 --yes
# Delete a token (dry run)sentry token delete my-org 12345 --dry-run
# Output as JSONsentry token list --json