glab(1)
β¨ glab-auth-logout β¨
okay so real talk, this page lives in the glab manual (section 1, iykyk) and it's literally the "bye bestie" command π
like it's the logout page. tiny page, huge main character energy.
π NAME π
glab-auth-logout β log out from a GitLab instance. that's it. that's the whole vibe. π«Ά
π¦ SYNOPSIS π¦
glab auth logout [flags]
πΈ DESCRIPTION πΈ
so you wanna dip π this command logs you out of a GitLab instance, no cap. the credentials for the instance you specify get removed from two places:
- the global configuration file β default path is
~/.config/glab-cli/config.ymljust so u know exactly where the receipts live π - the operating system's keyring β but only if a token was actually stored there in the first place π
so yeah, it scrubs both spots. squeaky clean. periodt. β¨
π OPTIONS π
--hostname=""β the hostname of the GitLab instance π (like, which GitLab are we logging out of, bestie). defaults to an empty string, so if you don't tell it, it's not gonna guess.
π OPTIONS INHERITED FROM PARENT COMMANDS π
these aren't even this command's options, they're the family hand-me-downs π
-h,--help[=false]β show help for this command π (defaults tofalse, as is tradition)
β EXAMPLE β
# Log out of a specific instance
glab auth logout --hostname gitlab.example.com
see how it's giving "specify the hostname, then leave" πͺπ¨ iconic behaviour honestly.
π₯ SEE ALSO π₯
glab-auth(1)β the rest of the auth fam, go say hi π«Ά
ngl there's nothing dangerous on this page, but likeβ¦ if you log out, you're logged out?? so maybe don't do it mid-deploy ππ
auto generated by spf13/cobra, Nov 2026 π§ββοΈ mwah, that's the whole page, hope it slayed for you ππ
π¦ 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