Usage
Description
Print the stored authentication token to stdout without any formatting. This command is designed for piping to other commands or scripts. The token is printed without a trailing newline when stdout is not a TTY (e.g., when piped), making it suitable for shell scripting.This command outputs the raw, unmasked token. Use with caution and avoid logging or displaying the token in insecure contexts.
Options
This command has no options.Examples
Print token
Use in shell scripts
Store the token in a variable:Pipe to clipboard
On macOS:Use with curl
Verify token format
Error Cases
Not authenticated
If no token is stored:Related Commands
sentry auth login- Authenticate and store a tokensentry auth status- View authentication status with masked tokensentry auth logout- Remove the stored token