← All tools

aliyun-cli

Popularity 85 Updated Development & Build

Universal Command-Line Interface for Alibaba Cloud

homebrewauto-collected

Installation

Homebrew
brew install aliyun-cli

Install with Homebrew.

English | 简体中文

<h1 align="center"Alibaba Cloud CLI</h1

<p align="center" A cross-platform command-line tool for managing Alibaba Cloud resources through OpenAPI. </p

<p align="center" <a href="https://github.com/aliyun/aliyun-cli/actions/workflows/go.yml"<img src="https://github.com/aliyun/aliyun-cli/actions/workflows/go.yml/badge.svg" alt="Build status"</a <a href="https://github.com/aliyun/aliyun-cli/releases/latest"<img src="https://img.shields.io/github/v/release/aliyun/aliyun-cli" alt="Latest release"</a <a href="https://github.com/aliyun/aliyun-cli/blob/master/LICENSE"<img src="https://img.shields.io/github/license/aliyun/aliyun-cli.svg" alt="License"</a </p

Alibaba Cloud CLI (aliyun) is written in Go and works on macOS, Linux, and Windows. It supports interactive and non-interactive credential profiles, OpenAPI calls, local API help, structured output, waiters, safety controls, and an extensible plugin system.

Alibaba Cloud CLI invokes cloud services through OpenAPI. Activate the target service first and make sure your identity has the required permissions. Avoid long-lived AccessKeys where a temporary or identity-based credential mode is available.

Install

Choose one of the following methods:

# Homebrew
brew install aliyun-cli

# macOS or Linux installer script
/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"

Official packages:

  • macOS GUI installer
  • macOS universal archive
  • Linux AMD64
  • Linux ARM64
  • Windows x64
  • All GitHub releases

Verify the installation:

aliyun version

Upgrade an existing standalone installation:

aliyun upgrade

If the CLI was installed through a package manager, prefer that package manager's upgrade command.

See the installation guide for PATH setup, source builds, and upgrades.

To try the CLI without installing it locally, open Alibaba Cloud Shell: