OCM-CLI plugin to be used when working with add-ons.
Execute the following go install
command to build and install the ocm-addons
command at $GOPATH/bin
.
go install github.com/mt-sre/ocm-addons/cmd/ocm-addons@latest
See these instructions for installing go on your machine.
Clone this repository to your local machine.
git clone git@github.com:mt-sre/ocm-addons.git
Run ./mage install
under the repository root to build the plug-in binary and
add it to your $GOPATH/bin
.
If you have not added $GOPATH/bin
to your $PATH
, then you may
alternatively run ./mage build
and manually move the bin/ocm-addons
binary to any other directory in your $PATH
.
curl -L https://raw.githubusercontent.com/mt-sre/ocm-addons/main/scripts/install.sh | bash
Install the ocm-cli and ensure that you are able to log in to an active OCM environment.
Run ocm login ...
to establish a login session with your chosen OCM environment.
Once logged in the plug-in can be accessed by running ocm addons
which will
display command information.
Note: the plug-in requires that an ocm.json
file exist which the OCM-CLI
will generate upon login and will remove upon logout. In the current state
$OCM_TOKEN
will be ignored if present in the environment.
See the contributing guide for more information.
See this document for information regarding the addition of new customer notifications.
No issues have been reported at this time.
Apache License 2.0, see LICENSES/Apache-2.0.txt.
This repository complies with the REUSE specification and any new files added will be checked for compliance. This means that an appropriate SPDX header must be present for new files which can be added manually or by using the REUSE tool.