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]β iftrue, deploy keys can be used for pushing code to the repository. Set it totruewhen 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 eitherOWNER/REPOorGROUP/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
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms