GH-REPO-DEPLOY-KEY(1) GitHub CLI manual GH-REPO-DEPLOY-KEY(1)

gh-repo-deploy-key - Manage deploy keys in a repository

gh repo deploy-key <command> [flags]

gh-repo-deploy-key-add(1)
Add a deploy key to a GitHub repository
gh-repo-deploy-key-delete(1)
Delete a deploy key from a GitHub repository
gh-repo-deploy-key-list(1)
List deploy keys in a GitHub repository

Select another repository using the [HOST/]OWNER/REPO format

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh-repo(1)

Jul 2025