Updating an Artifact in Artifact Registry
The only property that you can update for an artifact in Artifact Registry is its tags.
To update an artifact, use the
artifacts generic artifact
resource, , referenced in Artifact Registry CLI.Get all the commands for
artifacts generic artifact
:oci artifacts generic artifact -h
Use one of following commands to download an artifact to update an artifact:
update
update-by-path
Provide the Artifact OCIDAdd tags or update an artifact's tags by providing the artifact OCID in the OCI CLI.
Get help for the
update
command:oci artifacts generic artifact update -h
Find the options to provide for the
update
command:--artifact-id
[required]--freeform-tags
(optional)--defined-tags
(optional)
Update an artifact's tags by providing its OCID:
oci artifacts generic artifact update --artifact-id <artifact-OCID> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
Provide the Repository OCID, Artifact Path, and VersionAdd tags or update an artifact's tags by providing the repository OCID, and the artifact path and version, in the OCI CLI.
Get help for the
update-by-path
command:oci artifacts generic artifact update-by-path -h
Find the options to provide for the
update-by-path
command:--repository-id
[required]--artifact-path
[required]--artifact-version
[required]--freeform-tags
(optional)--defined-tags
(optional)
Update an artifact's tags by providing its repository, path, and version:
oci artifacts generic artifact update-by-path --repository-id <repository-OCID> --artifact-path <path-defined-for-artifact-in-repo> --artifact-version <version-defined-for-artifact-in-repo> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
You can update an artifact's tags in two ways:
- Provide the artifact OCID in UpdateGenericArtifact.
- Provide the repository OCID, artifact path, and version in UpdateGenericArtifactByPath.