mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
40 lines
1.1 KiB
Plaintext
40 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 virtual machine (`vm`) and virtual
|
|
machine instance (`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 filename 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.
|
|
|===
|