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 ajqexpression. 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 istextbestie π-R,--repo=""β select another repository. You can use eitherOWNER/REPOorGROUP/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@mefor 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
- 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