glab(1) glab(1)

glab-auth-logout - Log out from a GitLab instance.

glab auth logout [flags]

Logs out from a GitLab instance. The credentials for the specified instance are removed from the global configuration file (default ~/.config/glab-cli/config.yml) and from the operating system's keyring, if a token was stored there.

--hostname="" The hostname of the GitLab instance.

-h, --help[=false] Show help for this command.

# Log out of a specific instance
glab auth logout --hostname gitlab.example.com

glab-auth(1)

Jun 2026 Auto generated by spf13/cobra