Oc project: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * oc =Overview= "oc project" reports the current project. "oc projects" reports all projects. When used with an argument, "oc proje...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
"oc projects" reports all projects. | "oc projects" reports all projects. | ||
When used with an argument, "oc project" switches to a different [[ | When used with an argument, "oc project" switches to a different [[OpenShift_Concepts#Current_Projectt|current project]]. | ||
oc project ''<project_name>'' | oc project ''<project_name>'' | ||
Line 30: | Line 30: | ||
oc project | oc project | ||
Using project "logging" on server "https://master.openshift.novaordis.io:443". | Using project "logging" on server "https://master.openshift.novaordis.io:443". | ||
=Short Name of the Current Project= | |||
oc project -q |
Latest revision as of 22:42, 24 January 2018
Internal
Overview
"oc project" reports the current project.
"oc projects" reports all projects.
When used with an argument, "oc project" switches to a different current project.
oc project <project_name>
Examples
oc projects You have access to the following projects and can switch between them with 'oc project <projectname>': default kube-system logging management-infra openshift openshift-infra
oc project logging Now using project "logging" on server "https://master.openshift.novaordis.io:443".
oc project Using project "logging" on server "https://master.openshift.novaordis.io:443".
Short Name of the Current Project
oc project -q