dcloud git deploy-keys createAdd a deploy key
IAM git:CreateDeployKeyChanges state
Synopsis
dcloud git deploy-keys create repoId --name name --public-key publicKey [flags]Arguments
<repoId>Requiredstring
Also accepted as
--repo-id. Constraints: uuid
Flags
--nameRequiredstring
A name to recognise the key by, e.g. the machine
Constraints: 1-64 chars
--public-keyRequiredstring
The OpenSSH public key line, e.g. `ssh-ed25519 AAAA… comment`
Constraints: 1-4000 chars
--read-onlyOptionalboolean (--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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.