glab-auth-logout(1)

glab-auth-logout1

Log out from a gitlab instance.

Usage

glab auth logout [flags]

Overview

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.

Options

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

Options inherited from parent commands

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

Examples

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

From glab 1.126.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.