Skip to main content
This is documentation for OCI Registry As Storage 1.3.0-beta, which is in a preview status.
For a stable release documentation, see the latest version (1.2).
Version: 1.3.0-beta

Installation

This guide demonstrates the installation steps of ORAS CLI on different platforms.

Release artifacts

Install ORAS from the latest release artifacts:

For macOS and Linux type operating systems, you can determine operating system and architecture using uname:

OS="$(uname -s | tr A-Z a-z)"
ARCH=$(uname -m | sed -e 's/x86_64/amd64/g')
VERSION="1.3.0-beta.2"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_${OS}_${ARCH}.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_${OS}_${ARCH}.tar.gz -C oras-install/
sudo chown root:0 oras-install/oras
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_${VERSION}_${OS}_${ARCH}.tar.gz oras-install/

Linux

If you want to install ORAS on an AMD64-based Linux machine, run the following command:

VERSION="1.3.0-beta.2"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_${VERSION}_*.tar.gz oras-install/
note

If you want to install ORAS on an ARM64-based Linux machine, you can download it from https://github.com/oras-project/oras/releases/download/v1.3.0-beta.2/oras_1.3.0-beta.2_linux_arm64.tar.gz.

macOS

If you want to install ORAS on a Mac computer with Apple silicon, run the following command:

VERSION="1.3.0-beta.2"
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_darwin_arm64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_${VERSION}_*.tar.gz oras-install/
note

If you want to install ORAS on an Intel-based Mac, you can download it from https://github.com/oras-project/oras/releases/download/v1.3.0-beta.2/oras_1.3.0-beta.2_darwin_amd64.tar.gz.

Windows

winget install oras --version 1.3.0-beta.2
  • Alternatively, you can install ORAS CLI using .exe installer. Add %USERPROFILE%\bin\ to your PATH environment variable so that oras.exe can be found.
set VERSION="1.3.0-beta.2"
curl.exe -sLO "https://github.com/oras-project/oras/releases/download/v%VERSION%/oras_%VERSION%_windows_amd64.zip"
tar.exe -xvzf oras_%VERSION%_windows_amd64.zip
mkdir -p %USERPROFILE%\bin\
copy oras.exe %USERPROFILE%\bin\
set PATH=%USERPROFILE%\bin\;%PATH%

Docker Image

A public Docker image containing the CLI is available on GitHub Container Registry:

docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.3.0-beta.2 help
note

The default WORKDIR in the image is /workspace.

You can use the Docker image locally instead of installing a binary. For example create an alias:

alias doras='docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.3.0-beta.2'

Run ORAS commands:

doras pull ghcr.io/$GH_USER/oras:darwin-amd64 --username $GH_USER --password $GHCR_TOKEN -o ./download

Verify

Your Go version, OS/Arch and Git commit may vary depending on what you have downloaded:

$ oras version
Version: 1.3.0-beta.2
Go version: go1.24.0
OS/Arch: darwin/arm64
Git commit: 87379d22f42b5132ed583587766f0a780f9bd322
Git tree state: clean
note

ORAS on other package managers such as Homebrew, WinGet, Nix will be updated after the stable release.

You can check out our how-to guide if you would like to verify ORAS CLI Binaries.