.nh .TH "glab" "1" "Jun 2025" "Auto generated by spf13/cobra" "" .SH NAME glab-ssh-key-add - Add an SSH key to your GitLab account. .SH SYNOPSIS \fBglab ssh-key add [key-file] [flags]\fP .SH DESCRIPTION Creates a new SSH key owned by the currently authenticated user. .PP Requires the '--title' flag. .SH OPTIONS \fB-e\fP, \fB--expires-at\fP="" The expiration date of the SSH key. Uses ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. .PP \fB-t\fP, \fB--title\fP="" New SSH key's title. .PP \fB-u\fP, \fB--usage-type\fP="auth_and_signing" Usage scope for the key. Possible values: 'auth', 'signing' or 'auth_and_signing'. Default value: 'auth_and_signing'. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. Can use either \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format. Also accepts full URL or Git URL. .SH EXAMPLE .EX # Read ssh key from stdin and upload. $ glab ssh-key add -t "my title" # Read ssh key from specified key file, upload and set the ssh key type to "authentication". $ glab ssh-key add ~/.ssh/id_ed25519.pub -t "my title" --usage-type "auth" .EE .SH SEE ALSO \fBglab-ssh-key(1)\fP