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.yml just 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 to false, 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