---
title: '`glab artifact-registry status`'
stage: AI Coding
group: Code Review
info: To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments>
---

<!--
This documentation is auto generated by a script.
Please do not edit this file directly. Run `make gen-docs` instead.
-->

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

```plaintext
glab artifact-registry status [flags]
```

## Examples

```console
# Show Artifact Registry access status
glab artifact-registry status

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

```

## Options

```plaintext
      --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

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