You can install the Alibaba Cloud CLI either by downloading the installer or compiling the source code.
Method 1: Download installer
The Alibaba Cloud CLI is supported on Windows (64-bit), Linux and Mac clients. Download the installation package accordingly.
For Mac and Linux clients, after extracting the installation package, move the aliyun
executable file to the /usr/local/bin
directory.
For Windows client, add the aliyun
executable file to the PATH
environment variables.
Method 2: Compile source code
After you have installed Go, run the following command to install the CLI:
$ mkdir -p $GOPATH/src/github.com/aliyun
$ cd $GOPATH/src/github.com/aliyun
$ git clone http://github.com/aliyun/aliyun-cli.git
$ git clone http://github.com/aliyun/aliyun-openapi-meta.git
$ cd aliyun-cli
$ make install