Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryankwilliams/ocm-toolbox

Collection of command line tools to help with day to day tasks while working with OCM
https://github.com/ryankwilliams/ocm-toolbox

Last synced: 10 days ago
JSON representation

Collection of command line tools to help with day to day tasks while working with OCM

Awesome Lists containing this project

README

        

# OCM Toolbox (ocm-toolbox)

Command line utility to help with day to day tasks when working with
OCM (OpenShift Cluster Manager).

## Install

You can install/run `ocm-toolbox` by any of the following methods:

1. Go install
```
go install github.com/ryankwilliams/ocm-toolbox@main
```

2. Container image
```
podman run ghcr.io/ryankwilliams/ocm-toolbox:main --help
```

3. Build binary
```
make build
./out/ocm-toolbox
```

## Usage

Different sub-commands exist within `ocm-toolbox`. Each sub-command will
have different options and a help menu.

```shell
ocm-toolbox --help
```

### Examples

1. List cluster details

```shell
ocm-toolbox cluster-details
```

2. Get cluster credentials

```shell
ocm-toolbox cluster-credentials --cluster-id
```

3. Update cluster expiration timestamp

```shell
ocm-toolbox set-cluster-expiration --cluster-id \
--duration 60
```