glab(1)
π glab(1) β glab config, bestie edition π
Hey bestie, welcome to the glab(1) page where we talk about glab config. Itβs giving settings glow-up, and honestly? main character energy.
πΈ NAME πΈ
glab-config β manages your glab settings, periodt.
β¨ SYNOPSIS β¨
glab config [flags]
π DESCRIPTION π
Okay so this command manages key/value strings. Thatβs the whole vibe. Here are the current respected settings, and yes, every single one is invited to the group chat:
api_hostβ configures the host for the API endpoint. Defaults to the host itself. Also accepted asgitlab_api_host. Scoped per host, so set it with--host. Environment variable:GITLAB_API_HOST.api_protocolβ tells glab what protocol to use to access the API endpoint. Supported values:http,https. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_API_PROTOCOL,API_PROTOCOL.artifact_registry_domainsβ the domains of associated Artifact Registries. These are used to configure the Docker credential helper. Only list a domain here if it is actually backed by GitLab Artifact Registry: the credential helper tries this key first, and a successful token exchange is used as-is, with no fallback tocontainer_registry_domains. A container-registry domain listed here by mistake gets an artifact-registry token the registry rejects, anddocker pullhard-fails. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_ARTIFACT_REGISTRY_DOMAINS,ARTIFACT_REGISTRY_DOMAINS.branch_prefixβ prefix used byglab stackwhen naming generated branches. Defaults to the current userβs username (fromos/user.Current), falling back toglab-stackif unavailable. Environment variables, first one set wins:GLAB_BRANCH_PREFIX,BRANCH_PREFIX.browserβ what browser glab should run when opening links. This global config cannot be overridden by hostname. Environment variables, first one set wins:GLAB_BROWSER,BROWSER.ca_certβ path to a CA certificate (PEM) used to verify the GitLab serverβs TLS certificate.glab dependency-firewallcommands also trust it for package registries and outbound proxies. Useful for self-signed or private certificate authorities. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_CA_CERT,CA_CERT.check_updateβ lets glab automatically check for updates and notify you when there are new updates. Setting the environment variable totruealso forces a check, bypassing the once-a-day interval. Environment variables, first one set wins:GLAB_CHECK_UPDATE,CHECK_UPDATE.client_certβ path to a client certificate (PEM) used for mutual TLS authentication. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_CLIENT_CERT,CLIENT_CERT.client_idβ OAuth application client ID. Required when authenticating with OAuth against a self-managed GitLab instance. Scoped per host; set it with--host. Environment variable:GITLAB_CLIENT_ID.client_keyβ path to the private key (PEM) that matchesclient_cert. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_CLIENT_KEY,CLIENT_KEY.colorβ sets whether glab colors its output. Available options are[auto, never, always].autodetects whether the output is a terminal. This key takes precedence over theNO_COLORenvironment variable;NO_COLORapplies when this isauto(or unset). Environment variable:GLAB_COLOR.container_registry_domainsβ the domains of associated container registries. These are used to configure the Docker credential helper. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_CONTAINER_REGISTRY_DOMAINS,CONTAINER_REGISTRY_DOMAINS.custom_headersβ custom HTTP headers to add to all HTTP requests made by glab. Each header must use exactly one ofvalue,valueFromEnv, orvalueFromCommand. A command must print the complete header value on one line. glab runs it once for each process. Scoped per host; set it with--host.debugβ outputs more logging information, including underlying Git commands, expanded aliases, and DNS error details. Environment variable:GLAB_DEBUG.display_hyperlinksβ whether or not to display hyperlinks in terminal output. Defaults totrue(enabled for TTYs). Set tofalseto disable. Force hyperlinks in non-TTY environments by settingFORCE_HYPERLINKS=1. Environment variables, first one set wins:GLAB_DISPLAY_HYPERLINKS,DISPLAY_HYPERLINKS.duo_cli_auto_downloadβ automatically downloads the Duo CLI binary without prompting (true/false). Environment variables, first one set wins:GLAB_DUO_CLI_AUTO_DOWNLOAD,DUO_CLI_AUTO_DOWNLOAD.duo_cli_auto_runβ automatically runs GitLab Duo CLI without prompting (true/false). Set totrueto skip the confirmation prompt. Environment variables, first one set wins:GLAB_DUO_CLI_AUTO_RUN,DUO_CLI_AUTO_RUN.editorβ what editor glab should run when creating issues, merge requests, etc. This global config cannot be overridden by hostname. Also accepted asvisual,glab_editor. Environment variables, first one set wins:GLAB_EDITOR,VISUAL,EDITOR.git_protocolβ what protocol to use when performing Git operations. Supported values:ssh,https. Environment variables, first one set wins:GLAB_GIT_PROTOCOL,GIT_PROTOCOL.glab_pagerβ your desired pager command to use, such asless -R. Takes precedence over thePAGERenvironment variable.GLAB_PAGERtakes precedence over both. Environment variable:GLAB_PAGER.glamour_styleβ sets your desired Markdown renderer style. Available options are[auto, dark, light, notty].autodetects your terminalβs background color. To set a custom style, refer tohttps://github.com/charmbracelet/glamour#styles. Environment variables, first one set wins:GLAB_GLAMOUR_STYLE,GLAMOUR_STYLE.hostβ default GitLab hostname to use. Inside a repository, a Git remote on another host takes precedence over the config key. A host from an environment variable, such asGITLAB_HOST, always wins, and glab errors if no remote matches it. Also accepted asgitlab_host,gitlab_uri,gl_host. Environment variables, first one set wins:GITLAB_HOST,GITLAB_URI,GL_HOST.job_tokenβ CI job token used for Job-Token authentication. Typically populated automatically fromCI_JOB_TOKENwhen CI auto-login is enabled. Scoped per host; set it with--host.no_promptβ set totrue(1) to disable prompts, orfalse(0) to enable them. Also accepted asprompt_disabled. Environment variables, first one set wins:GLAB_NO_PROMPT,NO_PROMPT,PROMPT_DISABLED.notify_skill_updatesβ shows a notice when an installed agent skill (bundled or remote) has updates available. Environment variable:GLAB_NOTIFY_SKILL_UPDATES.orbit_cli_auto_downloadβ automatically downloads the GitLab Orbit CLI binary without prompting (true/false). Environment variables, first one set wins:GLAB_ORBIT_CLI_AUTO_DOWNLOAD,ORBIT_CLI_AUTO_DOWNLOAD.orbit_cli_auto_runβ automatically runs the GitLab Orbit CLI without prompting (true/false). Set totrueto skip the confirmation prompt. Environment variables, first one set wins:GLAB_ORBIT_CLI_AUTO_RUN,ORBIT_CLI_AUTO_RUN.proxyβ custom proxy for this host. Overrides environment proxy settings when set. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_PROXY,PROXY.remote_aliasβ name of the git remote that points at the GitLab repository. Used to resolve which remote to operate against when multiple are configured. Also accepted asgit_remote_url_var,git_remote_alias,remote_nickname,git_remote_nickname. Environment variables, first one set wins:GLAB_REMOTE_ALIAS,GIT_REMOTE_URL_VAR,GIT_REMOTE_ALIAS,REMOTE_ALIAS,REMOTE_NICKNAME,GIT_REMOTE_NICKNAME.show_whats_newβ shows a one-time post-upgrade banner pointing atglab whatsnewwhen a new version is detected. Environment variable:GLAB_SHOW_WHATS_NEW.skip_tls_verifyβ skips TLS certificate verification when talking to this host (true/false). Empty is treated asfalse. Use only for development; do not enable in production. Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_SKIP_TLS_VERIFY,SKIP_TLS_VERIFY.ssh_hostβ alternate hostname for SSH Git operations (e.g.,ssh.example.comorgit.example.com). Use this when SSH uses a different hostname than HTTP/API operations. Only affects SSH cloning and Git operations. Also accepted asgitlab_ssh_host. Scoped per host; set it with--host. Environment variable:GITLAB_SSH_HOST.subfolderβ subfolder where GitLab is installed (e.g.,gitlabforhttps://example.com/gitlab/). Use this when GitLab is hosted at a subfolder rather than domain root. Supports nested paths (e.g.,apps/gitlabforhttps://example.com/apps/gitlab/). Slashes are automatically trimmed, sogitlab,/gitlab, andgitlab/are equivalent. Only applies to HTTP/HTTPS operations (API and Git clone). Also accepted asgitlab_subfolder. Scoped per host; set it with--host. Environment variable:GITLAB_SUBFOLDER.telemetryβ set tofalse(0) to disable sending usage data to your GitLab instance ortrue(1) to enable. Seehttps://docs.gitlab.com/administration/settings/usage_statistics/for more information. Environment variable:GLAB_SEND_TELEMETRY.tokenβ your GitLab access token. To get one, readhttps://docs.gitlab.com/user/profile/personal_access_tokens/. A token set through an environment variable is sent only to the host named byGITLAB_HOST(or the host configuration key) orGITLAB_REPO, and to hosts already present in your configuration file. A host named only in a command argument receives no token. Also accepted asgitlab_token,oauth_token. Scoped per host; set it with--host. Environment variables, first one set wins:GITLAB_TOKEN,GITLAB_ACCESS_TOKEN,OAUTH_TOKEN.use_keyringβ stores the hostβs credentials in the operating systemβs keyring (true/false). Set automatically byglab auth login, which defaults totruewhen a keyring backend is available. Empty is treated asfalse(plaintext file storage). Scoped per host; set it with--host. Environment variables, first one set wins:GLAB_USE_KEYRING,USE_KEYRING.
Configuration file locations follow the XDG Base Directory specification. For the full search order and platform-specific paths, see the configuration page at https://docs.gitlab.com/cli/configuration/.
π OPTIONS π
-g,--global[=false]β use the global config file, bestie.
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β show help for this command. Iconic.
π¦ SEE ALSO π¦
Okay thatβs the whole page. This manual is auto generated by spf13/cobra, dated Nov 2026, and itβs the glab(1) manual. Bye bestie π
π¦ 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