Skip to main content
Print the stored authentication token to stdout.

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

Expected output:

Use in shell scripts

Store the token in a variable:

Pipe to clipboard

On macOS:
On Linux (with xclip):

Use with curl

Verify token format

Expected output:

Error Cases

Not authenticated

If no token is stored:
Expected output:
For a safer alternative that masks the token by default, use sentry auth status. Use sentry auth status --show-token to see the full token with additional context.