glab(1) glab(1)

glab-ssh-key-add - Add an SSH key to your GitLab account

glab ssh-key add [key-file] [flags]

Creates a new SSH key owned by the currently authenticated user.

The --title flag is always required

-e, --expires-at="" The expiration date of the SSH key in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)

-t, --title="" New SSH key's title

--help[=false] Show help for command

-R, --repo="" Select another repository using the OWNER/REPO or GROUP/NAMESPACE/REPO format or full URL or git URL

# 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/ -t "my title"


Mar 2023 Auto generated by spf13/cobra