A CLI and kubernetes CLI plugin that allows you to interact with OCM/ACM/MCE to provision and managed your Hybrid Cloud presence from the command-line.
Go 1.16 is required in order to build or contribute on this project as it leverage the go:embed
tip.
You can download the binary from https://github.com/open-cluster-management/cm-cli/releases
- Install krew https://krew.sigs.k8s.io/docs/user-guide/setup/install/
- Plugins can be installed with the
kubectl krew install cm
The binary will be installed in GOPATH/bin
git clone https://github.com/open-cluster-management/cm-cli.git
cd cm-cli
make build
cm
The binary will be installed in GOPATH/bin
This will create a binary oc-cm
and kubectl-cm
in the $GOPATH/go/bin
allowing you to call oc cm
or kubectl cm
git clone https://github.com/open-cluster-management/cm-cli.git
cd cm-cli
make plugin
kubectl cm
oc cm
This CLI (and plugin) is still in development, but aims to expose OCM/ACM's functional through a useful and lightweight CLI and kubectl/oc CLI plugin. Some features may not be present, fully implemented, and it might be buggy!
See our Contributing Document for more information.