dcloud git repositories createCreate a repository
Synopsis
dcloud git repositories create --name name [flags]Flags
--nameRequiredstring
Unique within the organization; part of the clone URL
Constraints: 1-100 chars, /^[A-Za-z0-9][A-Za-z0-9._-]*$/
--descriptionOptionalstring
One line about the repository; the template's description when absent
Constraints: max 500 chars
--visibilityOptionalenum
Who can see it; private when absent. public also needs git:PublishRepository
One of:
private,internal,public--default-branchOptionalstring
The branch clones check out and pull requests target by default; main when absent
Constraints: 1-100 chars
--tagsOptionalmap of string
Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).
Constraints: key=value
--templateOptionalobject
Start from a template: one commit with its files, no history (CI runs on it)
Constraints: JSON
Example
dcloud git repositories create --name exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.