dcloud errors projects createCreate a project and its first DSN key
The answer carries the DSN to put into the Sentry SDK (`Sentry.init({ dsn })`).
Synopsis
dcloud errors projects create --name name [flags]Flags
--nameRequiredstring
Display name, 1–64 characters (surrounding spaces trimmed)
Constraints: 1-64 chars
--platformOptionalenum
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,otherDefault:
"other"--slugOptionalstring
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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.