在Mac上安装OpenWhisk CLI [英] Install OpenWhisk CLI on mac
问题描述
由于某种原因,我无法安装OpenWhisk命令行.我下载了CLI并双击运行它.我看到一个终端窗口显示
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]
但随后会显示
-bash: wsk: command not found
推荐答案
OpenWhisk命令行不是安装程序,而是二进制文件本身.打开 Terminal.app ,导航到将二进制文件下载到的文件夹(例如cd ~/Downloads
),然后从此处使用二进制文件,例如./wsk action list
.
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
.
要能够在任何地方使用二进制文件,必须确保在PATH
中使用它.为此,请更改您的PATH
以包括wsk
所在的文件夹,或者将二进制文件复制到您的路径中已经包含的文件夹,例如/usr/local/bin
.
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
.
这篇关于在Mac上安装OpenWhisk CLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!