Usage
Arguments
Optional: org
Optional
Organization slug. If not provided, the organization is resolved from:
- Config defaults (set via DSN detection)
SENTRY_DSNenvironment variable- DSN detection in source code
Flags
--json
Output results as JSON instead of human-readable format.
- Example:
sentry org view --json
--web
Alias: -w
Open the organization in your browser instead of displaying details in the terminal.
- Example:
sentry org view acme-corp -w
Output
Human-Readable Format (Default)
Displays organization details including:- Organization - Organization slug
- Name - Organization display name
- ID - Organization ID
- Status - Organization status
- Created - Creation timestamp
JSON Format
With--json, outputs the complete organization object including:
id- Organization IDslug- Organization slugname- Organization namestatus- Organization statusdateCreated- Creation timestamp- Additional API fields
Examples
View organization details
Auto-detect organization from current directory
Open organization in browser
Get JSON for scripting
Auto-Detection
When the organization argument is omitted, the CLI attempts to detect it from:- Config defaults - Previously set default organization
- Environment variable -
SENTRY_DSNcontaining an organization identifier - Source code - Scanning for DSNs in:
.envfiles- JavaScript/TypeScript files
- Python files
- Go files
- Java files
- Ruby files
- PHP files
Notes
- If no organization can be resolved, you must provide the slug explicitly
- The command requires authentication (use
sentry auth loginif needed) - Organization data is fetched fresh from the API (not cached)