Downloading an Artifact in Artifact Registry

Download an artifact to a local environment.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
    2. Under List scope, choose a compartment that contains the artifacts.
    3. Click the repository that contains the artifacts.
    4. Under Artifacts, find the artifact that you want to download.
    5. Click the Actions menu for the artifact and then click Download.
  • To download an artifact to a local environment, 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 a local environment:

    • download
    • download-by-path
    Provide the Artifact OCID

    Download an artifact to your local environment by providing the artifact OCID in the OCI CLI.

    Get help for the download command:

    oci artifacts generic artifact download -h

    Find the required options for the download command:

    • --artifact-id
    • --file (The name of the file that will receive the response data, or '-' to write to STDOUT)

    Download an artifact by providing its OCID:

    oci artifacts generic artifact download --artifact-id <artifact-OCID> --file <name-to-save-for-downloaded-file>

    Example:

    oci artifacts repository download --artifact-id ocid1.genericartifact.oc1..xxx... --file my-downloaded-file
    Provide the Repository OCID, Artifact Path, and Version

    Download an artifact to your local environment by providing the repository OCID, and the artifact path and version, in the OCI CLI.

    Get help for the download-by-path command:

    oci artifacts generic artifact download-by-path -h

    Find the required options for the download-by-path command:

    • --repository-id
    • --artifact-path
    • --artifact-version
    • --file (The name of the file that will receive the response data, or '-' to write to STDOUT)
    oci artifacts generic artifact download-by-path --repository-id <repository-OCID> --artifact-path <path-defined-for-artifact-in-repo> --artifact-version <version-defined-for-artifact-in-repo> --file <name-to-save-for-downloaded-file>

    Get details for a specific artifact by providing its repository, path, and version:

    Example:

    oci artifacts generic artifact download-by-path --repository-id ocid1.artifactrepository.oc1..xxx... --artifact-path project01/my-web-app/artifact-abc --artifact-version 1.0.0 --file my-downloaded-file
  • You can download an artifact in two ways: