Skip to main content
Version: 0.15 (glpkg CLI)

glpkg config

Manage the saved token and default values (and, optionally, a registry proxy). Everything is stored under ~/.config/glpkg/.

glpkg config <command>

Token​

CommandDescription
glpkg config save <token>Save the GitLab token to ~/.config/glpkg/token (mode 0600)
glpkg config checkReport whether a token is saved; exits 1 if not
glpkg config getPrint the saved token (in full)
glpkg config removeDelete the saved token

check and get look only at the saved file, not at GITLAB_TOKEN. See Authentication.

Proxy (optional)​

Optional, see Registry proxy.

CommandDescription
glpkg config proxy:set <url>Set the registry proxy URL
glpkg config proxy:enableMark the proxy as enabled (requires a URL)
glpkg config proxy:disableMark the proxy as disabled
glpkg config proxy:status [--check]Show the URL and enabled state; --check also tests that the proxy responds

Defaults​

glpkg config defaults [key] [value]
glpkg config defaults --reset <key>
glpkg config defaults --reset-all

Without arguments it lists all defaults; with a key it shows one; with a key and value it sets it.

KeyBuilt-in valueUsed by
hostgitlab.comGitLab host (see Self-managed GitLab)
repo.visibilityprivateglpkg repo create (private, internal, public)
repo.createGroupsfalseglpkg repo create
publish.gitTagtrueglpkg publish release commit and tag
publish.pushtrueglpkg publish push

Examples:

glpkg config defaults publish.push false     # never push after publishing
glpkg config defaults repo.visibility internal
glpkg config defaults --reset publish.push

Stored in ~/.config/glpkg/defaults.json. A command-line flag always wins over a default.