.nh .TH "glab" "1" "Apr 2024" "Auto generated by spf13/cobra" "" .SH NAME .PP glab-ssh-key-add - Add an SSH key to your GitLab account .SH SYNOPSIS .PP \fBglab ssh-key add [key-file] [flags]\fP .SH DESCRIPTION .PP Creates a new SSH key owned by the currently authenticated user. .PP The --title flag is always required .SH OPTIONS .PP \fB-e\fP, \fB--expires-at\fP="" The expiration date of the SSH key in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) .PP \fB-t\fP, \fB--title\fP="" New SSH key's title .SH OPTIONS INHERITED FROM PARENT COMMANDS .PP \fB--help\fP[=false] Show help for command .PP \fB-R\fP, \fB--repo\fP="" Select another repository using the \fB\fCOWNER/REPO\fR or \fB\fCGROUP/NAMESPACE/REPO\fR format or full URL or git URL .SH EXAMPLE .PP .RS .nf # Read ssh key from stdin and upload $ glab ssh-key add -t "my title" # Read ssh key from specified key file and upload $ glab ssh-key add ~/.ssh/id_ed25519.pub -t "my title" .fi .RE .SH SEE ALSO .PP \fBglab-ssh-key(1)\fP