Accessing IBM Multicloud Manager with the CLI
To access IBM Multicloud Manager through the CLI, you need to have mcmctl CLI configured. See the Installing and Configuring the IBM Multicloud Manager CLI section in Installing IBM Multicloud Manager.
With the CLI configured, you can get clusters, pods, or other cluster resources. You can also deploy Helm charts, and initiate policy checks.
IBM Multicloud Manager general CLI commands (mcmctl)
Learn about the general mcmctl commands that you can run to access your IBM Multicloud Manager cluster.
Usage: mcmctl [flags] mcmctl [command]
Flags:
--alsologtostderr log to standard error as well as files
--cluster-namespace string namespace of the cluster (default "default")
-c, --cluster-selector string Selector (label query) to filter on clusters, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
-h, --help help for mcmctl
--kubeconfig string path to kubeconfig file. Overrides $KUBECONFIG (default "/home/ubuntu/.kube/config")
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-flush-frequency duration Maximum number of seconds between log flushes (default 5s)
--logtostderr log to standard error instead of files (default true)
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
-v, --v Level log level for V logs
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
mcmctl create
mcmctl create: View the API endpoint and API version for the service.
Example
mcmctl create <helm repo>
mcmctl delete
mcmctl delete: Delete resources by filenames, stdin, resources and names, or by resources and label selector.
Example
mcmctl delete <deployable trader>
mcmctl delete <helmrepo incubator>
mcmctl deploy
mcmctl deploy: Deploy an application.
Example
mcmctl deploy application -f <deployable.yaml>
mcmctl describe
mcmctl describe: Show details of a specific resource or group of resources.
Example
mcmctl describe <helmrepo incubator>
mcmctl describe <application trader>
mcmctl get
mcmctl get: Get list of the most important information about the requested resource.
Example
mcmctl get <clusters>
mcmctl get <applications>