All checks were successful
Test / frontend-tests (pull_request) Successful in 1m9s
Test / frontend-typecheck (pull_request) Successful in 1m15s
Test / rust-fmt-check (pull_request) Successful in 2m44s
Test / rust-clippy (pull_request) Successful in 24m22s
Test / rust-tests (pull_request) Successful in 25m43s
- Fix TypeScript lint errors in setup.ts and LogUpload - Remove unused imports and variables - Fix duplicate Separator exports in ui/index.tsx - Apply cargo fmt formatting to Rust code - Update ESLint configuration
64 lines
1.3 KiB
Groff
64 lines
1.3 KiB
Groff
.nh
|
|
.TH "GH-REPO-DEPLOY-KEY-ADD" "1" "Nov 2024" "GitHub CLI 2.63.0" "GitHub CLI manual"
|
|
|
|
.SH NAME
|
|
gh-repo-deploy-key-add - Add a deploy key to a GitHub repository
|
|
|
|
|
|
.SH SYNOPSIS
|
|
\fBgh repo deploy-key add <key-file> [flags]\fR
|
|
|
|
|
|
.SH DESCRIPTION
|
|
Add a deploy key to a GitHub repository.
|
|
|
|
.PP
|
|
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.
|
|
|
|
|
|
.SH OPTIONS
|
|
.TP
|
|
\fB-w\fR, \fB--allow-write\fR
|
|
Allow write access for the key
|
|
|
|
.TP
|
|
\fB-t\fR, \fB--title\fR \fB<string>\fR
|
|
Title of the new key
|
|
|
|
|
|
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
|
.TP
|
|
\fB-R\fR, \fB--repo\fR \fB<[HOST/]OWNER/REPO>\fR
|
|
Select another repository using the [HOST/]OWNER/REPO format
|
|
|
|
|
|
.SH EXIT CODES
|
|
0: Successful execution
|
|
|
|
.PP
|
|
1: Error
|
|
|
|
.PP
|
|
2: Command canceled
|
|
|
|
.PP
|
|
4: Authentication required
|
|
|
|
.PP
|
|
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
|
|
|
|
|
|
.SH EXAMPLE
|
|
.EX
|
|
# 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
|
|
|
|
.EE
|
|
|
|
|
|
.SH SEE ALSO
|
|
\fBgh-repo-deploy-key(1)\fR
|