Creating a Repository in Artifact Registry
Create a repository in Artifact Registry to store non-container generic artifacts or blobs.
To create a repository, use the
artifacts repositoryresource, referenced in Artifact Registry CLI.Get all the commands for
artifacts repository:oci artifacts repository -hGet help for the
createcommand:oci artifacts repository create -hFind the required options:
--compartment-id--repository-type--is-immutable
Find options that are not required:
--display-name--description--freeform-tags--defined-tags
Create a repository:
oci artifacts repository create --repository-type GENERIC --is-immutable <true or false> --display-name <repo-name> --compartment-id <compartment-OCID>Note
For--repository-type, onlyGENERICis allowed.Example:
oci artifacts repository create --repository-type GENERIC --is-immutable true --display-name webb-app-repo --compartment-id ocid1.compartment.oc1..xxx...Use the CreateRepository operation to create a repository for artifacts.