Dashboard › cli › Distillation
e884066e-681a-4146-9f0c-78aa0a43649a["lore_tm_v1_WOdNmgMLwQ1cohwtUNxEbiQCbP9Y8b4gUmTqZXtwszo"]
packages/cli/src/commands/project/create.ts, sentry project create examples are: sentry project create my-app:node, sentry project create acme-corp/my-app:javascript-nextjs, sentry project create web:javascript api:python-django worker:node, sentry project create my-app:python-django --team backend, and sentry project create my-app:go --json.packages/cli/src/commands/project/create.ts, project-create human output uses formatProjectCreateOutput; JSON output excludes slugDiverged, expectedSlug, teamSource, and requestedPlatform.kind: "array" and accepts one or more name:platform values parsed with String, with brief "One or more project name and platform pairs".team flag has kind: "parsed", uses parse: String, is optional, and has brief "Team to create the project under"."dry-run": DRY_RUN_FLAG; aliases are { ...DRY_RUN_ALIASES, t: "team" }.async *func(this: SentryContext, flags: CreateFlags, ...args: string[]) gets cwd from the context, calls parseProjectSpecs(args) to obtain { explicitOrg, parsed }, and resolves the organization once for the entire project batch via resolveOrg({ org: explicitOrg, cwd }).new ContextError("Organization", USAGE_HINT, [\Include org in name: ${USAGE_HINT}`]); otherwise it assigns const orgSlug = resolved.org`.--dry-run previews agree.--dry-run preview never actually creates the team.parsed[0], because a project name that slugifies to ""—such as punctuation-only or non-ASCII input—must not disable automatic team creation for every other project in the batch.