Installing the OCM CLI

Using Binaries

To install the OCM CLI you can download binaries for the major platforms from the GitHub releases page.

Homebrew

You can also install via homebrew for macOS and Linux:

brew install open-component-model/tap/ocm

Bash

To install with bash for macOS or Linux execute the following command:

curl -s https://ocm.software/install.sh | sudo bash

Building from source

Prerequisites

  • git
  • make
  • golang

Installation Process

Clone the open-component-model/ocm repo:

git clone https://github.com/open-component-model/ocm

Enter the repository directory (cd ocm/) and install the cli using make:

make install

Please note that the OCM CLI is installed in your go/bin directory, so you might need to add this directory to your PATH.

Verify the installation:

ocm version