gh repo deploy-key add
gh repo deploy-key add <key-file> [flags]
Add a deploy key to a GitHub repository.
Note that any key added by gh will be associated with the current authentication token. If you de-authorize the GitHub CLI app or authentication token from your account, any deploy keys added by GitHub CLI will be removed as well.
- Allow write access for the key
- Title of the new key
Options inherited from parent commands
- Select another repository using the [HOST/]OWNER/REPO format