FreeKB - OpenShift oc login command
OpenShift - oc login command

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

The oc login command is used to log into OpenShift.

oc login


You should be prompted to provide your username . . .

Authentication required for (openshift)


. . . and password.



Or, a token can be used, so that you don't need to authenticate with a username and password. Obviously, replace "abc123" with the actual token.

oc login --token=abc123


If you are authenticated, something like this should be displayed.

Login successful.

You have access to 193 projects, the list has been suppressed. You can list all projects with 'oc projects'

Using project "default".
Welcome! See 'oc help' to get started.


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 b0f01 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |