Artifact Registry lets you store, manage and secure container images
and artifacts from builds. You can enable or disable Artifact Registry
based on workload needs.

See [Pricing](https://docs.cloud.google.com/artifact-registry/pricing) for information about charges for Artifact Registry.

See the Artifact Analysis documentation for information about enabling
[Artifact Analysis](https://docs.cloud.google.com/artifact-analysis/docs/enabling-disabling-artifact-analysis) APIs and [pricing](https://cloud.google.com/artifact-analysis/pricing) for vulnerability scanning.

## Enabling service

1. Install and initialize [Google Cloud CLI](https://docs.cloud.google.com/sdk/docs) if it is not already installed. For an existing installation, update components of the Google Cloud CLI with the command: `gcloud components update`.

   To check your version of the gcloud CLI, run the command:

   ```
   gcloud version
   ```

   > [!NOTE]
   > **Note:** On Ubuntu, use the [Debian package](https://docs.cloud.google.com/sdk/docs/install#deb) to install gcloud CLI. The gcloud CLI snap package does not include `kubectl` or extensions to authenticate with Artifact Registry using the gcloud CLI.

2. Enable the API from [Google Cloud console](https://console.cloud.google.com/apis/enableflow?apiid=artifactregistry.googleapis.com) or with the following `gcloud` command:

   ```
   gcloud services enable artifactregistry.googleapis.com
   ```

## Disabling service

Before you disable the Artifact Registry API, ensure that any artifacts
that you want to keep are available in another location. It is recommended that
you [delete](https://docs.cloud.google.com/artifact-registry/docs/repositories/delete-repos) repositories before disabling the API.

When you disable the Artifact Registry API, the following conditions apply:

- Repositories and artifacts in repositories become inaccessible.
- Data might be deleted within 7 days after the API is disabled.

To disable the API from the Google Cloud console:

### console

1. Go to the [API Overview](https://console.cloud.google.com/apis/library/artifactregistry.googleapis.com) page for Artifact Registry.
2. Select the project where the API is enabled.
3. Click **Manage**.
4. Click **Disable API**.

### gcloud

Run the following command to disable the API for your current project:

    gcloud services disable artifactregistry.googleapis.com

## What's next

- Configure [access permissions](https://docs.cloud.google.com/artifact-registry/docs/access-control) for repositories
- Configure authentication to repositories:
  - [Docker](https://docs.cloud.google.com/artifact-registry/docs/docker/authentication)
  - [Java](https://docs.cloud.google.com/artifact-registry/docs/java/authentication)
  - [Node.js](https://docs.cloud.google.com/artifact-registry/docs/nodejs/authentication)
  - [Python](https://docs.cloud.google.com/artifact-registry/docs/python/authentication)