Anuroop
Anuroop

Reputation: 1002

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

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

Upvotes: 0

Views: 10482

Answers (2)

vlatko606
vlatko606

Reputation: 1149

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

Upvotes: 0

Anuroop
Anuroop

Reputation: 1002

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

Upvotes: 0

Related Questions