glab(1)

πŸ“¦ version 1.128.0, in arch rolling

πŸ’… glab(1) β€” the glab manual, bestie edition

okay so real talk: this page is the manual for glab, and specifically the little corner of it that is glab-deploy-token-get. yes, it's a subcommand of a subcommand. it's giving main character energy anyway. πŸŽ€


✨ NAME ✨

glab-deploy-token-get β€” get a deploy token. that's it. that's the whole vibe. 🫢


🌸 SYNOPSIS 🌸

glab deploy-token get  [flags]
lowkey note the double space before [flags] β€” we keep it exactly as the manpage has it, no cap. copy it character for character bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

so you want one single deploy token, of a project or of a group, and you know its ID. that's literally the whole job. ✨

okay and here's the important part, the part you cannot skip: the output never contains the token value. ever. a token value is shown only once β€” at the moment the token is created. so if you missed it, bestie… it's gone, it's not coming back, we don't have it. πŸ’€

and where do these token IDs come from in the first place? from glab deploy-token list. go get them from there, that's your source of truth. πŸ”₯


πŸ’œ OPTIONS πŸ’œ

  • -g, --group="" β€” grab a deploy token of the group instead of a project. group mode unlocked. πŸ‘‘
  • --jq="" β€” filter that JSON output with a jq expression. let jq cook. πŸ“
  • -F, --output="text" β€” format the output as: text, json. pick your fighter. ✨
  • -R, --repo="" β€” select another repository. you can use either OWNER/REPO or GROUP/NAMESPACE/REPO. the full URL or the Git URL is also accepted. flexible icon 🧚

πŸŽ€ OPTIONS INHERITED FROM PARENT COMMANDS πŸŽ€

  • -h, --help[=false] β€” show help for this command. your classic "wait what does this do again" button. πŸ™ˆ

🌈 EXAMPLE 🌈

the examples ate, honestly. look:

# Get deploy token 42 of the current project
glab deploy-token get 42

# Get a deploy token of a specific project
glab deploy-token get 42 --repo user/my-repo

# Get a group's deploy token
glab deploy-token get 42 --group group/sub-group

# Get a deploy token as JSON
glab deploy-token get 42 --output json

see how it's always token 42? iconic number choice, no notes. ⭐

remember the warning up top: none of these will show you the token value. the output never contains it. only creation shows it, once. πŸ’…

⭐ SEE ALSO ⭐


sign-off time 🫢 this whole page is auto generated by spf13/cobra, and it's dated Nov 2026, all under the manual name glab(1). so like… the robots wrote it and we just made it cute. mwah. πŸ’…βœ¨

πŸ“¦ where this page comes from