.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-config-edit - Opens the glab configuration file. .SH SYNOPSIS \fBglab config edit [flags]\fP .SH DESCRIPTION The command uses the following order when choosing the editor to use: .IP " 1." 5 \fBglab_editor\fR field in the configuration file. .IP " 2." 5 \fBVISUAL\fR environment variable. .IP " 3." 5 \fBEDITOR\fR environment variable. .SH OPTIONS \fB-l\fP, \fB--local\fP[=false] Open '.git/glab-cli/config.yml' file instead of the global '~/.config/glab-cli/config.yml' file. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX # Open the configuration file with the default editor glab config edit # Open the configuration file with vim EDITOR=vim glab config edit # Set vim to be used for all future 'glab config edit' invocations glab config set editor vim glab config edit # Open the local configuration file with the default editor glab config edit -l .EE .SH SEE ALSO \fBglab-config(1)\fP