Updating a Repository in Artifact Registry
You can update a repository's name, description, or tags in Artifact Registry.
To update a repository's name, description, or tags 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
update
command:oci artifacts repository update -h
Find the options for the
update
command:--repository-id
[required]--repository-type
[required]--display-name
(optional)--description
(optional)--freeform-tags
(optional)--defined-tags
(optional)
Update a repository:
oci artifacts repository update --repository-id <repository-OCID> --repository-type GENERIC --display-name <repo-new-name> --description <new-description> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
Example:
oci artifacts repository update --repository-id ocid1.artifactrepository.oc1..xxx... --repository-type GENERIC --display-name <new-repo-name> --description <new-description>
Note
You don't need to update all the optional fields. You can leave out optional fields such as--freeform-tags
from yourupdate
command.Use the UpdateRepository operation to update a specific repository.