Help us learn about your current experience with the documentation. Take the survey.

glab artifact-registry status

Check your access to the GitLab Artifact Registry. (EXPERIMENTAL)

Synopsis

Exchange a GitLab credential for a short-lived Artifact Registry access token, then print the token’s issuer, subject, audience, and expiry so you can confirm which identity and instance you are authenticated as. No credentials are written to disk.

Prerequisites:

  • A GitLab Enterprise Edition (EE) instance on GitLab 19.1 or later.
  • Token exchange enabled on the instance (the gate_token_exchange_endpoint feature flag).

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/.

glab artifact-registry status [flags]

Examples

# Show Artifact Registry access status
glab artifact-registry status

# Show Artifact Registry access status as JSON
glab artifact-registry status --output json

Options

      --hostname string   GitLab hostname to check. Defaults to the configured GitLab instance.
      --jq string         Filter JSON output with a jq expression.
  -F, --output string     Format output as: text, json. (default "text")

Options inherited from parent commands

  -h, --help   Show help for this command.