All Products
Search
Document Center

Install CLI

Last Updated: Nov 20, 2018

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:

  1. $ mkdir -p $GOPATH/src/github.com/aliyun
  2. $ cd $GOPATH/src/github.com/aliyun
  3. $ git clone http://github.com/aliyun/aliyun-cli.git
  4. $ git clone http://github.com/aliyun/aliyun-openapi-meta.git
  5. $ cd aliyun-cli
  6. $ make install