FreeKB - OpenShift Viewing Projects using the oc get projects command
OpenShift - Viewing Projects using the oc get projects command

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

Before you can use the projects command, you must first login using the oc login command.

The oc get projects command will list the available projects, like this. The * character is used to indicate the current project being used.

oc get projects

You have access to the following projects and can switch between them with 'oc project <projectname>':

   project1
 * project2
   project3
   et cetera

Using project "project2" on server "https://oc.example.com:8443".

 

The -q or --short flag can be used to display only the project names.

~]# oc get projects --short
project1
project2
project3

 

--short=false can be used to return something like this.

oc get projects --short=false

Using project "project2" on server "https://oc.example.com:8443".

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter fe8d6 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |