dcloud git access-tokens create

Create a git access token and return it once

IAM git:CreateAccessTokenChanges state

Synopsis

dcloud git access-tokens create --name name [flags]

Flags

  • --nameRequired

    string

    A name to recognise the token by

    Constraints: 1-64 chars

  • --expires-in-daysOptional

    number

    Days until the token expires; it never expires when absent

    Constraints: integer, 1-365

  • --accessOptional

    enum

    read: clone, fetch and API reads only; write (default): also push and writes

    One of: read, write

  • --repository-idsOptional

    array of string

    Only these repositories; omit for every repository you can reach

Example

dcloud git access-tokens create --name example

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