glab(1)
π 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 ajqexpression. let jq cook. π-F,--output="text"β format the output as:text,json. pick your fighter. β¨-R,--repo=""β select another repository. you can use eitherOWNER/REPOorGROUP/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 β
glab-deploy-token(1)β the parent, the origin story, go read it. π
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
- 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