2

I am unable to install OpenWhisk command line for some reason. I download the CLI and double click to run it. I see a terminal window saying

[Process Complete]

But then it says

-bash: wsk: command not found
1
  • 1
    you can now brew install wsk. Oct 12, 2018 at 14:26

5 Answers 5

9

The OpenWhisk command line is not an installer but rather the binary itself. Open your Terminal.app, navigate to the folder you downloaded the binary to (like cd ~/Downloads) and use the binary from there, for example ./wsk action list.

To be able to use the binary from everywhere, you'll have to make sure its in the PATH. To achieve that, either alter your PATH to include the folder where wsk is located or copy the binary to a folder already contained in your path like /usr/local/bin.

4
  • I tried that but that still din't help. I ran the 'export PATH=$PATH:/Users/SBD/Dropbox/bluemix/wsk' and then 'echo "$PATH"' It shows up there but there the same error '-bash: wsk: command not found'. I download the Mac executable and unzip n ran that too. But it didnt help Feb 3, 2017 at 13:06
  • I also when into the folder and ran ./wsk it shows me the info and then still nothing "command not found". Is it possible to share a video tutorial if you know of any to install? Feb 3, 2017 at 13:22
  • Where can i get the OpenWhisk command line Binary from Bluemix. I only get a wsk executable? Feb 7, 2017 at 10:54
  • You should be almost there. Your PATH is slightly off, it should be: export PATH=$PATH:/Users/SBD/Dropbox/bluemix/ (drop the wsk). Feb 8, 2017 at 19:41
6
  1. Download wsk cli from here.

  2. Go to downloads folder and modify permissions for wsk file using terminal

    $ chmod +x ./wsk

  3. Move wsk to use/local/bin folder using terminal. This will add wsk to the PATH

    $ sudo mv wsk /usr/local/bin

  4. Test this using following command:

    $ wsk --help

2

Try ./wsk, if that works, you can update your path: PATH = $PATH:. then just use the wsk.

2

If you're using Homebrew, I added a tap so you can easily install the wsk binary from a MacOS terminal: https://github.com/shaftoe/homebrew-wsk

brew install shaftoe/wsk/wsk
1

You can download the binary from the below url and then use .wsk from the folder where you place this binary into. https://openwhisk.ng.bluemix.net/cli/go/download/mac/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.