1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/virt-openshift-client-commands.adoc

39 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * virt/virt-using-the-cli-tools.adoc
[id="virt-openshift-client-commands_{context}"]
= {product-title} client commands
The {product-title} `oc` client is a command-line utility for managing
{product-title} resources, including the `VirtualMachine` (`vm`) and `VirtualMachineInstance` (`vmi`) object types. +
[NOTE]
====
You can use the `-n <namespace>` flag to specify a different project.
====
.`oc` commands
[width="100%",cols="42%,58%",options="header",]
|===
|Command |Description
|`oc login -u <user_name>`
|Log in to the {product-title} cluster as `<user_name>`.
|`oc get <object_type>`
|Display a list of objects for the specified object type in the current project.
|`oc describe <object_type> <resource_name>`
|Display details of the specific resource in the current project.
|`oc create -f <object_config>`
|Create a resource in the current project from a file name or from stdin.
|`oc edit <object_type> <resource_name>`
|Edit a resource in the current project.
|`oc delete <object_type> <resource_name>`
|Delete a resource in the current project.
|===