How to solve 'oc is not recognized as an internal or external command' problem?

6.3k Views Asked by At

I have installed Minishift, started it successfully but now I am not able to use oc command. Please help. Below is the screenshot.

oc command not found

2

There are 2 best solutions below

0
On

To solve this problem:-

  1. Get path of oc command:- # minishift oc-env
  2. Set the path using SET PATH command.

Please see below screenshot for reference.

enter image description here

0
On

1 download oc.exe https://developers.redhat.com/openshift/command-line-tools

2 navigate to environment variables -> system variables -> new

3 add here: /path/to/the/oc.exe