Installing the OCM CLI
Overview
You can install the latest release of the OCM CLI from any of the following sources (more details below):
Bash
To install with bash
for macOS or Linux, execute the following command:
Install using Homebrew
Install using Nix (with Flakes)
see: Flakes
Install from AUR (Arch Linux User Repository)
git-url: https://aur.archlinux.org/ocm-cli.git package-url: https://aur.archlinux.org/packages/ocm-cli
Install using Docker / Podman
Build and Run It Yourself
or interactively:
You can pass in the following arguments to override the predefined defaults:
GO_VERSION
: The golang version to be used for compiling.ALPINE_VERSION
: The alpine version to be used as the base image.GO_PROXY
: Your go proxy to be used for fetching dependencies.
Please check hub.docker.com for possible version combinations.
on MS Windows
using Chocolatey
see: chocolatey community package: ocm-cli
using winget
see: microsoft/winget-pkgs: Open-Component-Model
Building from Source
Prerequisites
Installation Process
Clone the open-component-model/ocm
repo:
Enter the repository directory (cd ocm/
) and install the cli using make
:
Please note that the OCM CLI is installed in your
go/bin
directory, so you might need to add this directory to yourPATH
.
Verify the installation: