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 repository
resource, referenced in Artifact Registry CLI.Get all the commands for
artifacts repository
:oci artifacts repository -h
Get help for the
create
command:oci artifacts repository create -h
Find 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
, onlyGENERIC
is 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.