Installation
odo
can be used as either a CLI tool or an IDE plugin on Mac, Windows or Linux.
Each release is signed, checksummed, verified, and then pushed to our binary mirror.
For more information on the changes of each release, they can be viewed either on GitHub or the blog.
CLI Installation
Linux
- Intel / AMD 64
- ARM 64
- PowerPC
- IBM Z
Installing odo
on amd64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-amd64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on arm64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-arm64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on ppc64le
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-ppc64le -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-ppc64le.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on s390x
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-s390x -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-linux-s390x.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
MacOS
Homebrew
NOTE: This will install from the main branch on GitHub
Installing odo
using Homebrew:
- Install odo:
brew install odo-dev
- Verify the version you installed is up-to-date:
odo version
Binary
- Intel
- Apple Silicon
Installing odo
on amd64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-darwin-amd64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-darwin-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
chmod +x ./odo
sudo mv ./odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on arm64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-darwin-arm64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-darwin-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
chmod +x ./odo
sudo mv ./odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Windows
Open a PowerShell terminal
Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-windows-amd64.exe -o odo.exe
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.10.0/odo-windows-amd64.exe.sha256 -o odo.exe.sha256
# Visually compare the output of both files
Get-FileHash odo.exe
type odo.exe.sha256
- Add the binary to your
PATH
IDE Installation
Visual Studio Code (VSCode)
The OpenShift Toolkit VSCode extension uses both odo
and oc
binaries
to interact with Kubernetes or OpenShift cluster.
To install it:
- Open VS Code.
- Launch VS Code Quick Open (
Ctrl+P
). - Paste the following command and press
Enter
:
ext install redhat.vscode-openshift-connector
JetBrains IDEs
The OpenShift Toolkit by Red Hat plugin can be installed
to interact with OpenShift or Kubernetes clusters right from your JetBrains IDEs like IntelliJ IDEA, WebStorm or PyCharm.
It uses odo
and oc
binaries for fast iterative application development on those clusters.
To install it:
- Press
Ctrl+Alt+S
to open the IDE settings and select Plugins. - Find the "OpenShift Toolkit by Red Hat" plugin in the Marketplace and click Install.
Alternative installation methods
Source code
- Clone the repository and cd into it.
git clone https://github.com/redhat-developer/odo.git
cd odo - Install tools used by the build and test system.
make goget-tools
- Build the executable from the sources in
cmd/odo
.make bin
- Check the build version to verify that it was built properly.
./odo version
- Install the executable in the system's GOPATH.
make install
- Check the binary version to verify that it was installed properly; verify that it is same as the build version.
odo version
Maven plugin
It is possible to integrate the odo
binary download in a Maven project using odo Downloader Plugin.
The download can be executed using the download
goal which automatically retrieves the version for the current architecture:
mvn software.tnb:odo-downloader-maven-plugin:0.1.3:download \
-Dodo.target.file=$HOME/bin/odo \
-Dodo.version=v3.10.0
asdf
The asdf version manager is a tool for managing multiple runtime versions using a common CLI.
With asdf
installed, the asdf plugin for odo can be used to install any released version of odo
:
asdf plugin add odo
asdf install odo 3.10.0
asdf global odo 3.10.0