Listing the Repositories in Artifact Registry

List the repositories in a specific compartment in Artifact Registry.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
    2. Under List scope, choose the compartment that contains the repositories.
    3. For each listed repository, view the following properties:
      • Repository name
      • State
        • Available
        • Deleted
      • Creation date and time
  • To list all the repositories in a specific compartment, use the artifacts repository resource, referenced in Artifact Registry CLI.

    Get all the commands for artifacts repository:

    oci artifacts repository -h

    Get help for the list command:

    oci artifacts repository list -h

    Find the options to provide for the list command:


    Get the list of repositories in a specific compartment:

    oci artifacts repository list --compartment-id <compartment-OCID>


    oci artifacts repository list --compartment-id

    Add Filters

    You can add filters to narrow down the listed results.

    Example: Only list the repositories that are immutable.

    oci artifacts repository list --compartment-id <compartment-OCID> is-immutable true
  • Use the ListRepositories operation to list the repositories of a specified compartment.