Getting help
You can get help with CLI commands and MicroShift resources in the following ways.
-
Use
oc help --flagto get information about a specific CLI command:Example: Get help for theoc createcommand$ oc create --helpExample outputCreate a resource by filename or stdin JSON and YAML formats are accepted. Usage: oc create -f FILENAME [flags] ... -
Use the
oc explaincommand to view the description and fields for a particular resource:Example: View documentation for thePodresource$ oc explain podsExample outputKIND: Pod VERSION: v1 DESCRIPTION: Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources ...