Usage
Arguments
Required: name
Required
Project name. Supports <org>/<name> syntax to specify the organization explicitly.
- Example:
my-app - Example:
acme-corp/my-app
Required: platform
Required
Project platform identifier. Must be a valid Sentry platform.
Common platforms:
javascript,javascript-react,javascript-nextjs,javascript-vue,javascript-angular,javascript-svelte,javascript-remix,javascript-astronode,node-expresspython,python-django,python-flask,python-fastapigo,rust,elixirruby,ruby-railsphp,php-laraveljava,androiddotnet,react-native,apple-ios
javascript-nextjs). If you use dots by mistake (e.g., javascript.nextjs), the CLI will auto-correct and warn.
Flags
--team
Alias: -t
Team slug to create the project under.
- If the organization has exactly one team, it is selected automatically
- If the organization has no teams, one is created automatically using the project slug
- If the organization has multiple teams, you must specify
--team
sentry project create my-app node --team backend
--json
Output results as JSON instead of human-readable format.
- Example:
sentry project create my-app python --json
Organization Resolution
If the name doesn’t include an org prefix (e.g.,acme-corp/my-app), the organization is resolved from:
- Config defaults (set via DSN detection or explicit configuration)
SENTRY_DSNenvironment variable- DSN detection in source code
<org>/<name> syntax:
Output
Human-Readable Format (Default)
Displays:- Project created - Success message with project name
- Organization - Organization slug
- Project slug - Generated project slug (if different from name)
- Team - Team slug
- Team source - How the team was selected (auto-selected, auto-created, or explicit)
- Platform - Platform identifier
- DSN - Primary DSN (if available)
- URL - Web URL to view the project
JSON Format
With--json, outputs an object with:
- Complete project object from the API
dsn- Primary DSN (null if unavailable)teamSlug- Team the project was created under
Examples
Create a Node.js project
Create with explicit organization and team
Create a Python Django project
Get JSON output for scripting
Error Handling
Project Already Exists
If a project with the same name already exists:Invalid Platform
If the platform is invalid:Organization Not Found
If the organization doesn’t exist or you don’t have access:Team Not Found
If the specified team doesn’t exist:Notes
- Project slugs are generated by converting names to lowercase, replacing spaces with hyphens, and removing special characters
- The DSN is fetched after project creation (best-effort)
- If the organization has no teams, a team is automatically created using the project slug
- Platform identifiers are normalized (dots converted to hyphens with a warning)