glab(1)

πŸ’… glab-deploy-key-add β€” add a deploy key to a GitLab project ✨

Welcome to the glab(1) manual page for glab deploy-key add, bestie β€” this is the one that adds a deploy key to a GitLab project. 🫢

🌸 NAME 🌸

glab-deploy-key-add β€” add a deploy key to a GitLab project.

✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

It creates a new deploy key. That's the whole vibe. ✨

It requires the --title flag β€” like, genuinely requires it, no cap. No --title, no deploy key. Periodt. πŸ’…

πŸŽ€ OPTIONS πŸŽ€

  • -c, --can-push[=false] β€” if true, deploy keys can be used for pushing code to the repository. Set it to true when you want that push power. πŸ‘‘
  • -e, --expires-at="" β€” the expiration date of the deploy key, using the ISO-8601 format: YYYY-MM-DDTHH:MM:SSZ. Mark your calendar ⏰
  • -t, --title="" β€” the new deploy key's title. This one is required, remember? πŸ’–

🫢 OPTIONS INHERITED FROM PARENT COMMANDS 🫢

  • -h, --help[=false] β€” show help for this command. Your little safety net. 🧚
  • -R, --repo="" β€” select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. Repository freedom 🌈

πŸ”₯ 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) β€” go check out the parent command too, iykyk. πŸ¦‹

Auto generated by spf13/cobra β€” Nov 2026 β€” glab(1). Bye bestie, slay your deploy keys! πŸ’…βœ¨

πŸ“¦ where this page comes from