Downloading an Artifact in Artifact Registry
Download an artifact to a local environment.
- Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
- Under List scope, choose a compartment that contains the artifacts.
- Click the repository that contains the artifacts.
- Under Artifacts, find the artifact that you want to download.
- Click the Actions menu for the artifact and then click Download.
To download an artifact to a local environment, use the
artifacts generic artifactresource, referenced in Artifact Registry CLI.Get all the commands for
artifacts generic artifact:oci artifacts generic artifact -hUse one of following commands to download an artifact to a local environment:
downloaddownload-by-path
Provide the Artifact OCIDDownload an artifact to your local environment by providing the artifact OCID in the OCI CLI.
Get help for the
downloadcommand:oci artifacts generic artifact download -hFind the required options for the
downloadcommand:--artifact-id--file(The name of the file that will receive the response data, or'-'to write toSTDOUT)
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-fileProvide the Repository OCID, Artifact Path, and VersionDownload 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-pathcommand:oci artifacts generic artifact download-by-path -hFind the required options for the
download-by-pathcommand:--repository-id--artifact-path--artifact-version--file(The name of the file that will receive the response data, or'-'to write toSTDOUT)
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-fileYou can download an artifact in two ways:
- Provide the artifact OCID in GetGenericArtifactContent.
- Provide the repository OCID, artifact path, and version in GetGenericArtifactContentByPath.