Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update installing-the-ocm-cli #335

Merged
merged 4 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions content/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
title: "Installing the OCM CLI"
description: ""
lead: ""
date: 2022-08-12T10:37:58+01:00
lastmod: 2022-08-12T10:37:58+01:00
draft: false
images: []
weight: 21
toc: true
---

## Overview
## Overview

You can install the latest release of the OCM CLI from any of the following sources (more details below):

Expand All @@ -36,7 +34,7 @@ curl -s https://ocm.software/install.sh | sudo bash
brew install open-component-model/tap/ocm
```

### Install using Nix (with [Flakes](https://nixos.wiki/wiki/Flakes))
## Install using Nix (with Flakes)

```sh
# Nix (macOS, Linux, and Windows)
Expand All @@ -56,6 +54,8 @@ nix profile list | grep ocm
ocm --help
```

see: [Flakes](https://nixos.wiki/wiki/Flakes)

## Install from AUR (Arch Linux User Repository)

git-url: https://aur.archlinux.org/ocm-cli.git
Expand All @@ -76,7 +76,7 @@ makepkg -i
podman run -t ghcr.io/open-component-model/ocm:latest --help
```

## Build and Run It Yourself
### Build and Run It Yourself

```sh
podman build -t ocm .
Expand All @@ -101,6 +101,24 @@ Please check [hub.docker.com](https://hub.docker.com/_/golang/tags?page=1&name=a
podman build -t ocm --build-arg GO_VERSION=1.22 --build-arg ALPINE_VERSION=3.19 --build-arg GO_PROXY=https://proxy.golang.org .
```

## on MS Windows

### using Chocolatey

```powershell
choco install ocm-cli
```

see: [chocolatey community package: ocm-cli](https://community.chocolatey.org/packages/ocm-cli)

### using winget

```powershell
winget install ocm-cli
```

see: [microsoft/winget-pkgs: Open-Component-Model](https://github.com/microsoft/winget-pkgs/tree/master/manifests/o/Open-Component-Model)

## Building from Source

### Prerequisites
Expand Down
Loading