glab(1) glab(1) NAME glab-artifact-registry-get-token - Get a short-lived access token for the GitLab Artifact Registry. (EXPERIMENTAL) SYNOPSIS glab artifact-registry get-token [flags] DESCRIPTION Exchange a GitLab credential for a short-lived access token scoped to the GitLab Artifact Registry. The command prints the bare token to stdout, so a shell can capture it directly, for example to feed docker login. Prerequisites: * A GitLab Enterprise Edition (EE) instance on GitLab 19.4 or later. This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/. OPTIONS --duration=15m0s How long the token should remain valid. Must be be- tween 1s and 12h0m0s. --hostname="" GitLab hostname to request the token from. Defaults to the configured GitLab instance. --jq="" Filter JSON output with a jq expression. -F, --output="text" Format output as: text, json. OPTIONS INHERITED FROM PARENT COMMANDS -h, --help[=false] Show help for this command. EXAMPLE # Get a token using the default duration glab artifact-registry get-token # Get a token valid for one hour glab artifact-registry get-token --duration 1h # Get a token as JSON, including its expiry glab artifact-registry get-token --output json SEE ALSO glab-artifact-registry(1) Auto generated by spf13/cobra Nov 2026 glab(1)
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPTIONS INHERITED FROM PARENT COMMANDS | EXAMPLE | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=glab-artifact-registry-get-token&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>