MicroShift is Developer Preview software only.
For more information about the support scope of Red Hat Developer Preview software, see Developer Preview Support Scope.Chapter 6. OpenShift CLI command reference
This reference provides descriptions and example commands for OpenShift CLI (oc
) commands. You must have cluster-admin
or equivalent permissions to use these commands.
Run oc adm -h
to list all administrator commands or run oc <command> --help
to get additional details for a specific command.
Using oc <command> --help
lists details for any oc
command. Not all oc
commands apply to using Red Hat build of MicroShift.
6.1. oc commands list for Red Hat build of MicroShift Copy linkLink copied to clipboard!
The following lists a few examples of oc
commands you can use to administer, deploy, and observe a Red Hat build of MicroShift node.
6.1.1. oc apply Copy linkLink copied to clipboard!
Apply a configuration to a resource by file name or stdin
Example usage
6.1.2. oc delete Copy linkLink copied to clipboard!
Delete resources by file names, stdin, resources and names, or by resources and label selector
Example usage
6.1.3. oc get Copy linkLink copied to clipboard!
Display one or many resources
Example usage