Updating a Repository in Artifact Registry

You can update a repository's name, description, or tags in Artifact Registry.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
    2. Under List scope, choose the compartment that contains the repositories.
    3. Click the name of the repository that you want to update.
    4. Click Edit.
    5. Update the repository name or description. The name must start with a letter or underscore, followed by letters, numbers, hyphens, or underscores. Length can be 1–255 characters. Avoid entering confidential information.
    6. Click Save.
    7. (Optional) Click Add Tags to manage tags for this repository.

      If you have permission to create a resource in OCI, you also have permission to add free-form tags to that resource. To add a defined tag, you must have permission to use the tag namespace. For information about tagging, see Resource Tags. If you're not sure whether to add tags to this resource, skip this option. You can add tags later.

  • 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>


    oci artifacts repository update --repository-id ocid1.artifactrepository.oc1..xxx... --repository-type GENERIC --display-name <new-repo-name> --description <new-description>

    You don't need to update all the optional fields. You can leave out optional fields such as --freeform-tags from your update command.
  • Use the UpdateRepository operation to update a specific repository.