This is a cache of https://docs.openshift.com/container-platform/4.7/cli_reference/osdk/cli-osdk-install.html. It is a snapshot of the page at 2024-11-22T21:35:28.012+0000.
Installing the Operator SDK <strong>cli</strong> - Operator SDK | <strong>cli</strong> tools | OpenShift Container Platform 4.7
×

The Operator SDK provides a command-line interface (cli) tool that Operator developers can use to build, test, and deploy an Operator. You can install the Operator SDK cli on your workstation so that you are prepared to start authoring your own Operators.

See Developing Operators for full documentation on the Operator SDK.

OpenShift Container Platform 4.7 supports Operator SDK v1.3.0.

Installing the Operator SDK cli

You can install the OpenShift SDK cli tool on Linux.

Prerequisites
  • Go v1.13+

  • docker v17.03+, podman v1.9.3+, or buildah v1.7+

Procedure
  1. Navigate to the OpenShift mirror site.

  2. From the 4.7.23 directory, download the latest version of the tarball for Linux.

  3. Unpack the archive:

    $ tar xvf operator-sdk-v1.3.0-ocp-linux-x86_64.tar.gz
  4. Make the file executable:

    $ chmod +x operator-sdk
  5. Move the extracted operator-sdk binary to a directory that is on your PATH.

    To check your PATH:

    $ echo $PATH
    $ sudo mv ./operator-sdk /usr/local/bin/operator-sdk
Verification
  • After you install the Operator SDK cli, verify that it is available:

    $ operator-sdk version
    Example output
    operator-sdk version: "v1.3.0-ocp", ...