Listing the Repositories in Artifact Registry
List the repositories in a specific compartment in Artifact Registry.
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:--compartment-id
Get the list of repositories in a specific compartment:
oci artifacts repository list --compartment-id <compartment-OCID>
Example:
oci artifacts repository list --compartment-id ocid1.compartment.oc1..xxx...
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.