Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

aliyun-cli

> 开发工具
Open source

Alibaba Cloud CLI

1.1K stars0 likes1 views
WebsiteGitHub

About

Alibaba Cloud CLI

English | 简体中文

Alibaba Cloud CLI

A cross-platform command-line tool for managing Alibaba Cloud resources through OpenAPI.

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:

bash
# 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:

bash
aliyun version

Upgrade an existing standalone installation:

bash
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:

Quick start

1. Configure a profile

For an interactive local environment, OAuth avoids storing a long-lived AccessKey:

bash
aliyun configure --mode OAuth --profile default

You can also use AK, StsToken, RamRoleArn, EcsRamRole, OIDC, External, CredentialsURI, ChainableRamRoleArn, CloudSSO, BearerToken, or Anonymous mode where applicable.

bash
# Inspect and select profiles
aliyun configure list
aliyun configure switch --profile default

See configuration and credentials before using a profile in production or CI.

2. Call an API

Both the traditional PascalCase form and the metadata-driven kebab-case form are supported where metadata is available:

bash
aliyun ecs DescribeRegions
aliyun ecs describe-regions

3. Explore help

bash
aliyun --help
aliyun ecs DescribeInstances --help
aliyun ecs describe-instances --help

Common capabilities

Filter and format output

bash
aliyun ecs DescribeInstances \
  --output cols=InstanceId,Status rows=Instances.Instance[]

aliyun ecs describe-instances \
  --cli-query 'Instances.Instance[].{Id:InstanceId,Status:Status}'

Wait for a resource state

bash
aliyun ecs DescribeInstances \
  --InstanceIds '["i-example"]' \
  --waiter expr='Instances.Instance[0].Status' to=Running

Use product plugins

bash
aliyun plugin search 
aliyun plugin install --name 
aliyun plugin list
aliyun plugin update --name 

See command usage and plugin management for the complete workflows.

Troubleshoot

OpenAPI Troubleshoot helps diagnose OpenAPI request failures by RequestId or error message.

Documentation

Topic English 简体中文
Documentation index English 中文
Installation and upgrade Guide 指南
Configuration and credentials Guide 指南
Commands, output, and automation Guide 指南
MCP, OpenTelemetry, and machine interfaces Guide 指南
Plugin management Guide 指南

Additional resources:

  • Official Alibaba Cloud CLI documentation
  • OpenAPI Portal
  • Changelog
  • Security policy

Support

  • Search existing or open a GitHub issue.
  • For a suspected security vulnerability, follow SECURITY.md instead of opening a public issue.
  • Release notes and binaries are available on the Releases page.

License

Alibaba Cloud CLI is licensed under the Apache License 2.0.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goalibabaalibaba-cloud-clialibaba-cloud-openapialibabacloud

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具