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
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
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/
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-wskTry
./wsk
, if that works, you can update your path:PATH = $PATH:.
then just use thewsk
.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 yourPATH
to include the folder wherewsk
is located or copy the binary to a folder already contained in your path like/usr/local/bin
.Download wsk cli from here.
Go to downloads folder and modify permissions for
wsk
file using terminal$ chmod +x ./wsk
Move
wsk
touse/local/bin
folder using terminal. This will addwsk
to thePATH
$ sudo mv wsk /usr/local/bin
Test this using following command:
$ wsk --help