Skip to content

mw gitlab config set

Releasev0.35.0 · cfeceb67

mw gitlab config set <key> <value> [flags]

Update the configuration by setting a key to a value. Use ‘glab config set –global’ to set a global config. Specifying the ‘–host’ flag also saves in the global configuration file.

-g, --global
Write to global '~/.config/glab-cli/config.yml' file rather than the repository's '.git/glab-cli/config.yml' file.
--host <string>
Set per-host setting.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
- glab config set editor vim
- glab config set token xxxxx --host gitlab.com
- glab config set check_update false --global
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.