Enable and disable the service

This page describes the steps to enable and disable Artifact Registry.

If you use Container Registry, you can enable Artifact Registry in the same project. Each service operates independently.

See Pricing for information about charges for Artifact Registry

See the Artifact Analysis documentation for information about enabling Artifact Analysis APIs and pricing for vulnerability scanning.

Enabling service

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  5. Make sure that billing is enabled for your Google Cloud project.

  6. Install and initialize Google Cloud CLI 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
  7. Enable the API from Google Cloud console 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 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 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