glpkg config
Manage the saved token and default values (and, optionally, a registry proxy). Everything is stored under
~/.config/glpkg/.
glpkg config <command>
Token
| Command | Description |
|---|---|
glpkg config save <token> | Save the GitLab token to ~/.config/glpkg/token (mode 0600) |
glpkg config check | Report whether a token is saved; exits 1 if not |
glpkg config get | Print the saved token (in full) |
glpkg config remove | Delete the saved token |
check and get look only at the saved file, not at GITLAB_TOKEN. See
Authentication.
Proxy (optional)
Optional, see Registry proxy.
| Command | Description |
|---|---|
glpkg config proxy:set <url> | Set the registry proxy URL |
glpkg config proxy:enable | Mark the proxy as enabled (requires a URL) |
glpkg config proxy:disable | Mark 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.
| Key | Built-in value | Used by |
|---|---|---|
host | gitlab.com | GitLab host (see Self-managed GitLab) |
repo.visibility | private | glpkg repo create (private, internal, public) |
repo.createGroups | false | glpkg repo create |
publish.gitTag | true | glpkg publish release commit and tag |
publish.push | true | glpkg 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.