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 sameproject. Each service operates independently.

SeePricing for information about charges for Artifact Registry.

See the Artifact Analysis documentation for information about enablingArtifact Analysis APIs andpricing 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.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.create permission.Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  3. Verify 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.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.create permission.Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. Install and initializeGoogle 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
    Note: On Ubuntu, use theDebian package to install gcloud CLI. The gcloud CLI snap package does not includekubectl or extensions to authenticate with Artifact Registry using the gcloud CLI.
  7. Enable the API fromGoogle Cloud console or with the followinggcloud command:
    gcloud services enable artifactregistry.googleapis.com

Disabling service

Before you disable the Artifact Registry API, ensure that any artifactsthat you want to keep are available in another location. It is recommended thatyoudelete 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 theAPI Overview page for Artifact Registry.
  2. Select the project where the API is enabled.
  3. ClickManage.
  4. ClickDisable API.

gcloud

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

gcloudservicesdisableartifactregistry.googleapis.com

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.