Command Line Tools

With the OpenShift command line interface (CLI), you can create applications and manage OpenShift projects from a terminal. You can download the oc client tool using the links below. For more information about downloading and installing it, please refer to the Get Started with the CLI documentation. Refer to the Get Started with the CLI documentation for instructions about downloading and installing the oc client tool.

After downloading and installing it, you can start by logging in using this current session token:

oc login {{loginBaseURL}} --token={{sessionToken}}...click to show token...
                      oc login {{loginBaseURL}}
                    

A token is a form of a password. Do not share your API token.

After you login to your account you will get a list of projects that you can switch between:

oc project project-name

If you do not have any existing projects, you can create one:

oc new-project project-name

To show a high level overview of the current project:

oc status

For other information about the command line tools, check the CLI Reference and Basic CLI Operations.