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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

**gh repo deploy-key &lt;command&gt; \[flags]**

# [AVAILABLE COMMANDS](#AVAILABLE_COMMANDS)

[**gh-repo-deploy-key-add(1)**](#gh_repo_deploy_key_add%281%29)

Add a deploy key to a GitHub repository

[**gh-repo-deploy-key-delete(1)**](#gh_repo_deploy_key_delete%281%29)

Delete a deploy key from a GitHub repository

[**gh-repo-deploy-key-list(1)**](#gh_repo_deploy_key_list%281%29)

List deploy keys in a GitHub repository

# [OPTIONS](#OPTIONS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

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

# [EXIT CODES](#EXIT_CODES)

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.

# [SEE ALSO](#SEE_ALSO)

[**gh-repo(1)**](/man/os/gh/gh-repo.1)

Oct 2026

---

Document: gh-repo-deploy-key(1) from gh 2.102.0-r2 (Chainguard OS)
Source: https://github.com/cli/cli
