.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-config-path - Print the location of the global configuration file. .SH SYNOPSIS \fBglab config path [flags]\fP .SH DESCRIPTION Print where \fBglab\fR reads and writes its global configuration. The location depends on the platform and whether a legacy configuration directory exists, so use this command instead of hard-coding a path. .PP The command prints the path even if the file does not exist yet, so it is safe to run before the first \fBglab auth login\fR\&. .PP Use \fB--dir\fR to print the parent directory. Grant write access to that directory rather than to \fBconfig.yml\fR alone, because \fBglab\fR writes a temporary file in that directory first and then replaces \fBconfig.yml\fR with it. .PP Repository-local settings live in the repository's \fB\&.git/glab-cli/config.yml\fR and this command does not report them. .PP If no user configuration file exists, \fBglab\fR falls back to a read-only system-wide one. This command always reports the user location. .SH OPTIONS \fB--dir\fP[=false] Print the configuration directory instead of the configuration file. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX # 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)" .EE .SH SEE ALSO \fBglab-config(1)\fP