dcloud git deploy-keys create

Add a deploy key

IAM git:CreateDeployKeyChanges state

Synopsis

dcloud git deploy-keys create repoId --name name --public-key publicKey [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --nameRequired

    string

    A name to recognise the key by, e.g. the machine

    Constraints: 1-64 chars

  • --public-keyRequired

    string

    The OpenSSH public key line, e.g. `ssh-ed25519 AAAA… comment`

    Constraints: 1-4000 chars

  • --read-onlyOptional

    boolean (--read-only / --no-read-only)

    true lets the key clone and fetch only; false also lets it push. true when absent

Example

dcloud git deploy-keys create repoId --name example --public-key example

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