The Alibaba Cloud CLI is a tool to manage and use Alibaba Cloud resources through a command line interface. It is written in Go and built on the top of Alibaba Cloud OpenAPI.

Installation Steps:

  1. Open Terminal using Spotlight search by pressing  <command+space>.
    Type terminal and hit  Enter key.
  2. Now, run
    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/null
  3. Installaliyun-cli using brew
    brew installaliyun-cli

aliyun-cliis ready to use now!

Use Alibaba Cloud CLI

  • The API requiring the Action parameter is the RPC style, while the API requiring the PathPattern parameter is the RESTful style.
  • In general, the API style for a product is consistent.
  • Each API only supports one style. If an incorrect calling method is used, another API may be called or an error ApiNotFound is returned.