How can I pass login credentials for my OpenShift cluster through the command line in order to automate logging in?

Solution In Progress - Updated -

Issue

I would like to write some bash scripts in order to automate tasks. Is there a way to login from the CLI by providing credentials in the oc login command?

Environment

Red Hat OpenShift Container Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content