logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gh-repo-deploy-key-add - Add a deploy key to a GitHub repository

Description

       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.

Example

       # generate a passwordless SSH key and add it as a deploy key to a repository
       $ ssh-keygen -t ed25519 -C "my description" -N "" -f ~/.ssh/gh-test
       $ gh repo deploy-key add ~/.ssh/gh-test.pub

Name

       gh-repo-deploy-key-add - Add a deploy key to a GitHub repository

Options

-w, --allow-write
              Allow write access for the key

       -t, --title<string>
              Title of the new key

Options Inherited From Parent Commands

-R, --repo<[HOST/]OWNER/REPO>
              Select another repository using the [HOST/]OWNER/REPO format

See Also

gh-repo-deploy-key(1)

                                                    Jan 2025                           GH-REPO-DEPLOY-KEY-ADD(1)

Synopsis

ghrepodeploy-keyadd<key-file>[flags]

See Also