Skip to main content
Version: 1.47

Install the Okteto CLI

The Okteto CLI is the open-source command-line tool you use to build, deploy, test, and develop your applications on Okteto.

Installing the Okteto CLI​

Follow the steps for your operating system.

macOS and Linux​

curl https://get.okteto.com -sSfL | sh

To install a specific version, set the OKTETO_VERSION environment variable:

curl https://get.okteto.com -sSfL | OKTETO_VERSION=3.22.0 sh

You can also install it with Homebrew, from the Okteto tap:

brew install okteto/cli/okteto

The Okteto tap installs Okteto's prebuilt binary.

warning

Don't install from Homebrew Core with brew install okteto. That formula compiles the Okteto CLI from source with Homebrew's Go toolchain, which Okteto doesn't control, and that can lead to inconsistencies.

Windows​

Download okteto.exe and add it to your PATH.

You can also install it with Scoop:

scoop install okteto
tip

To update the Okteto CLI with Scoop, you might need to run scoop unhold okteto & scoop update okteto or scoop uninstall okteto & scoop install okteto.

GitHub​

You can also download the binary from the GitHub releases, or build it from the source code.

Configuring the Okteto CLI​

Point the Okteto CLI to your Okteto instance, replacing https://okteto.example.com with its URL:

okteto context use https://okteto.example.com

The command opens your browser so you can log in. Once you do, the Okteto CLI is ready to use with that instance.

Next Steps​

If Okteto is already installed in your cluster, follow Deploy your app.

To install Okteto in your cluster, follow the installation guides.