Alibaba Cloud CLI supports macOS, Linux, and Windows. After installation, the executable name is aliyun (aliyun.exe on Windows).
Download and extract the package for your platform, then place the executable in a directory on PATH.
| Platform | Package |
|---|---|
| macOS | GUI installer |
| macOS | Universal archive |
| Linux AMD64 | Archive |
| Linux ARM64 | Archive |
| Windows x64 | ZIP archive |
All published versions are available from GitHub Releases.
On macOS or Linux, a typical manual installation is:
tar -xzf <downloaded-archive>.tgz
chmod +x aliyun
sudo mv aliyun /usr/local/bin/aliyun
aliyun versionOn Windows, extract aliyun.exe and add its directory to the user or system Path environment variable, then open a new terminal.
brew install aliyun-cli
aliyun versionUpgrade a Homebrew installation with:
brew update
brew upgrade aliyun-cliThe installer script supports macOS and Linux:
/bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/install.sh)"In environments with strict software supply-chain controls, download and review the script before running it.
The CLI includes an upgrade command:
aliyun upgradeIf the CLI was installed through a package manager, prefer that package manager's upgrade command. You can always replace a standalone binary with a newer package from the Releases page.
Requirements:
- Git with submodule support
- The Go version declared in
go.mod - Platform tools required by the selected Make target
Clone submodules and build the release-style binary with packed metadata:
git clone --recurse-submodules https://github.com/aliyun/aliyun-cli.git
cd aliyun-cli
make build
./out/aliyun versionFor a development build that reads metadata from the checked-out submodule:
go build -o out/aliyun ./maincommand not found: ensure the executable directory is onPATH, then open a new shell.- Permission denied on macOS/Linux: run
chmod +x aliyun. - Wrong CPU architecture: download the archive matching AMD64/x86_64 or ARM64.
- Old version still runs: use
command -v aliyun(orwhere aliyunon Windows) to find duplicate installations.
Next: configure credentials.