dcloud errors projects create

Create a project and its first DSN key

IAM errors:CreateProjectChanges state

The answer carries the DSN to put into the Sentry SDK (`Sentry.init({ dsn })`).

Synopsis

dcloud errors projects create --name name [flags]

Flags

  • --nameRequired

    string

    Display name, 1–64 characters (surrounding spaces trimmed)

    Constraints: 1-64 chars

  • --platformOptional

    enum

    What the project runs: javascript-nextjs, javascript, node, python, go or other (default). Chooses the setup snippet the console shows; events of any SDK are accepted either way

    One of: javascript-nextjs, javascript, node, python, go, other

    Default: "other"

  • --slugOptional

    string

    What sentry-cli’s --project and SENTRY_PROJECT name: lowercase letters, digits and dashes, starting with a letter or digit, up to 50. Default: derived from the name, with -2, -3, … added when taken. A slug given here that another live project of the organization has is refused (409)

    Constraints: /^[a-z0-9][a-z0-9-]{0,49}$/

Example

dcloud errors projects create --name example

Generated from the API description, the same one the API checks requests against and the CLI is built from.