Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
glab(1) 								 glab(1)

NAME
     glab-deploy-key-add - Add a deploy key to a GitLab project.

SYNOPSIS
     glab deploy-key add [key-file] [flags]

DESCRIPTION
     Creates a new deploy key.

     Requires the '--title' flag.

OPTIONS
     -c,  --can-push[=false]	   If  true, deploy keys can be used for pushing
     code to the repository.

     -e, --expires-at=""      The expiration date of the deploy key,  using  the
     ISO-8601 format: YYYY-MM-DDTHH:MM:SSZ.

     -t, --title=""	 New deploy key's title.

OPTIONS INHERITED FROM PARENT COMMANDS
     -h, --help[=false]      Show help for this command.

     -R, --repo=""	Select another repository. You can use either OWNER/REPO
     or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

EXAMPLE
     # Read deploy key from stdin and upload.
     glab deploy-key add -t "my title"

     # Read deploy key from specified key file and upload
     cat ~/.ssh/id_ed25519.pub | glab deploy-key add --title='test' -

     # Read deploy key from specified key file, upload and set "can push" attribute.
     glab deploy-key add ~/.ssh/id_ed25519.pub -t "my title" --can-push true

SEE ALSO
     glab-deploy-key(1)

Auto generated by spf13/cobra	    Aug 2026				 glab(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=glab-deploy-key-add&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help