OS Manuals

gh-repo-deploy-key(1)

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

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]

Add a deploy key to a GitHub repository

Delete a deploy key from a GitHub repository

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)

Oct 2026

gh 2.103.3-r0 · os · ingested 2026-10-28