glab(1)
π NAME π
glab-config-path β prints the location of the global configuration file. Welcome to the glab(1) manual, bestie; weβre about to find your config fileβs address, no cap. π
β¨ SYNOPSIS β¨
glab config path [flags]
πΈ DESCRIPTION πΈ
Okay so this command prints where glab reads and writes its global configuration. The exact location depends on the platform and on whether a legacy configuration directory exists β thatβs why you should use this command instead of hard-coding a path, bestie. Donβt do the guessy thing. π
It prints the path even if the file doesnβt exist yet, so itβs safe to run before your first glab auth login. Lowkey perfect for pre-setup vibe checks. β¨
Use --dir to print the parent directory instead. And listen: grant write access to that directory rather than to config.yml alone, because glab writes a temporary file in that directory first and then replaces config.yml with it. Thatβs the whole routine. π
Repository-local settings live in the repositoryβs .git/glab-cli/config.yml, and this command does not report them. Not me being clear about scope. π«Ά
If no user configuration file exists, glab falls back to a read-only system-wide one. This command always reports the user location. Periodt. π
Your own configuration file must not be readable by anyone else, so it needs mode 600. A system-wide one, in a directory listed in XDG_CONFIG_DIRS, is read whatever its read permissions are, but itβs refused if itβs writable by group or others.
bestie, mode 600 is not a suggestion. Itβs the vibe check for your own config file. π₯
π OPTIONS π
--dir[=false]β prints the configuration directory instead of the configuration file. Itβs the βshow me the folder, not the fileβ button. π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β shows help for this command. The classic. β¨
π EXAMPLE π
# Print the path to the global configuration file
glab config path
# Print the directory that holds the configuration file
glab config path --dir
# Open the configuration file in an editor
$EDITOR "$(glab config path)"
π¦ SEE ALSO π¦
glab-config(1)β go hang with the parent command page. π«Ά
Thatβs the whole page, bestie. This glab(1) moment was Auto generated by spf13/cobra, dated Nov 2026. Slay. π
π¦ 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