---
name: "glab-config-edit"
section: "1"
platform: "linux"
package: "glab"
version: "1.126.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glab-config-edit"
---

# glab-config-edit(1)

Opens the glab configuration file.

## NAME

glab-config-edit - Opens the glab configuration file.

## SYNOPSIS

**glab config edit \[flags\]**

## DESCRIPTION

The command uses the following order when choosing the editor to use:

- 1\.

  **glab\_editor** field in the configuration file.

- 2\.

  **VISUAL** environment variable.

- 3\.

  **EDITOR** environment variable.

## OPTIONS

**-l**, **--local**\[=false\]\
 	Open '.git/glab-cli/config.yml' file instead of the global '~/.config/glab-cli/config.yml' file.

## OPTIONS INHERITED FROM PARENT COMMANDS

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

## EXAMPLE

```
# 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
```

## SEE ALSO

**[glab-config(1)](/glab-config/1.md)**
