glab-artifact-registry

Installation
SKILL.md

glab artifact-registry

Exchange the active GitLab credential for a short-lived Artifact Registry access token. The command group also accepts the glab ar alias. This command group is experimental; verify live help and the target GitLab instance before using it in durable automation.

Prerequisites

  • GitLab Enterprise Edition 19.1 or later.
  • The instance administrator enabled the gate_token_exchange_endpoint feature flag.
  • glab is authenticated to the intended hostname.

The token is ephemeral but still a credential. Never print it in logs, store it in a repository, include it in command arguments, or paste it into issue/MR content.

Check access first

status performs the token exchange and prints non-secret identity metadata: issuer, subject, audience, and expiry. Each check mints and immediately discards a server-side token; prefer JSON for automation and do not call it in a tight loop.

glab artifact-registry status --hostname gitlab.example.com --output json
Installs
27
GitHub Stars
48
First Seen
Aug 17, 2026
glab-artifact-registry — vince-winkintel/gitlab-cli-skills