gh repo deploy-key add ~/.ssh/id_rsa.pub --title 'CI Key'

Category: GitHub CLI

gh repo deploy-key add ~/.ssh/id_rsa.pub --title 'CI Key'

Add a deploy key to a repository

Adds an SSH public key as a deploy key for CI or deployment access.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.