glab(1)

πŸ’… glab(1) β€” the token revoke page, bestie edition

okay so this is a page from the glab manual (yes, that glab, the GitLab CLI one, iconic) and today's main character is glab token revoke. Buckle up πŸŽ€


✨ NAME ✨

glab-token-revoke β€” revoke user, group, or project access tokens. bye-bye token, don't let the door hit you πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

glab token revoke  [flags]

🌸 DESCRIPTION 🌸

So basically you're revoking a user, group, or project access token. That's the whole vibe. And listen β€” if multiple tokens with the same name exist, you can specify the ID of the token to be super clear about which one you're killing off πŸ”₯

The output format can be either "JSON" or "text", pick your fighter. The JSON output will show the meta information of the revoked token. The normal text output is a description of the revoked token name and ID. Both cute, both valid ✨

And highkey important: administrators can revoke personal access tokens belonging to other users. admin privilege go brrr πŸ‘‘


πŸ’– OPTIONS πŸ’–

  • -g, --group="" β€” revoke a group access token. Lowkey ignored if a user or repository argument is set, so like, don't bother combining them πŸ™ˆ
  • --jq="" β€” filter the JSON output with a jq expression. chef's kiss for parsing πŸ“
  • -F, --output="text" β€” format output as: text, json. 'text' provides the name and ID of the revoked token; 'json' outputs the token with metadata. default is text bestie πŸŽ€
  • -R, --repo="" β€” select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted, so go off with whatever format you vibe with 🌈
  • -U, --user="" β€” revoke a personal access token. Use @me for the current user β€” literally the easiest way to revoke your own stuff 🫢

🧚 OPTIONS INHERITED FROM PARENT COMMANDS 🧚

  • -h, --help[=false] β€” show help for this command. the classic, the icon, the "wait what does this flag do again" saviour πŸ’€

⭐ EXAMPLE ⭐

no cap, the examples are right here, copy-paste away:

# Revoke a project access token of current project
glab token revoke my-project-token

# Revoke a project access token of a specific project
glab token revoke --repo user/my-repo my-project-token

# Revoke a group access token
glab token revoke --group group/sub-group my-group-token

# Revoke my personal access token
glab token revoke --user @me my-personal-token

# Revoke a personal access token of another user (administrator only)
glab token revoke --user johndoe johns-personal-token

see how --repo, --group, and --user each get their moment? main character energy for every flag, fr fr πŸ’œ


πŸ” SEE ALSO πŸ”

  • glab-token(1) β€” the parent page, go check it out if you want the full token saga πŸ‘‘

just a lil heads up bestie: revoking is permanent. there's no undo button, no take-backs, no "jk". vibe check your token name twice before you hit enter 😭

that's the whole page! this masterpiece was auto generated by spf13/cobra, dated Nov 2026, and it's the glab(1) manual β€” slay, go revoke responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from