Extend oc token validity at Openshift Online/ OpenShift Container Platform

Solution In Progress - Updated -


  • The token provided by OpenShift (via https://console.xxxx.openshift.com/console/command-line) expires too shortly.
  • Would like to know how long it lengths.
  • Is there a way to extend the expire time of the oc token and/or to set it to unlimited time.


  • Openshift Online, v3

  • OpenShift Container Platform, v3+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In