# aliyun-cli を Homebrew, Nix, pacman, zypper, winget, scoop でインストール

aliyun-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:aliyun-cli
```

## エージェント安全性の回答

aliyun-cli controls Alibaba Cloud resources from local credentials.

- **認証情報アクセス:** Reads Alibaba Cloud access keys, profiles, and environment credentials.
- **リモート変更:** Can create, delete, and modify cloud resources.
- **公開/成果物リスク:** Can deploy infrastructure and upload artifacts to cloud services.
- **推奨コントロール:** Gate mutating aliyun commands and credential access.
- **エージェント利用ガイダンス:** Allow read-only listing; require approval for writes, deletes, and deploys.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install aliyun-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#aliyun-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/al/aliyun-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S aliyun-cli
```

  証拠: Arch Linux sync databases: aliyun-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install aliyun-cli
```

  証拠: openSUSE Tumbleweed package metadata: aliyun-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Alibaba.AlibabaCloudCLI -e
```

  証拠: Windows Package Manager source index: Alibaba.AlibabaCloudCLI from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/aliyun
```

  証拠: Scoop official bucket manifest trees: bucket/aliyun.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:aliyun-cli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 3.4.11
- **ソース概要:** Universal Command-Line Interface for Alibaba Cloud
- **ホームページ:** <https://github.com/aliyun/aliyun-cli>
- **リポジトリ:** <https://github.com/aliyun/aliyun-cli>
- **最終更新:** 2026-07-29T11:52:59Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- aliyun (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 3.4.11
## プロジェクトの歴史と使われ方

Alibaba Cloud CLI is Alibaba Cloud's open-source command-line interface for managing Alibaba Cloud resources through OpenAPI.

### プロジェクトの歴史

The public repository begins in git history on 2015-06-30. The current README describes the CLI as a Go tool built on top of Alibaba Cloud OpenAPI and distributed through GitHub releases, platform installers, a one-line installer, and package managers.

The changelog records a v0.1 entry dated 2018-01-11 with a Go refactoring, basic configuration, and automatic endpoint location. Later pre-v3 entries added richer configuration commands, authentication modes, completion, paging, ossutil integration, and v3.0.0 GA refactoring.

### 採用の歴史

The README explicitly supports trying the CLI in Alibaba Cloud Shell before local installation, which gives it both a hosted-cloud and local-terminal path. It documents Homebrew installation, direct downloads for macOS, Linux, and Windows, and links to GitHub releases.

The input package-manager facts show broad downstream packaging: Homebrew, Nix, pacman, Scoop, winget, and zypper.

### 使われ方

Users normally start with aliyun configure, which writes profile data including credentials, region, output format, and language. The README documents authentication modes including AK, RAM role ARN, ECS RAM role, OIDC, external credential process, CredentialsURI, chainable RAM role ARN, and CloudSSO.

Once configured, the aliyun executable invokes Alibaba Cloud OpenAPI actions and product commands from the terminal, with troubleshooting support tied to RequestID or error messages.

### パッケージ好きにとっての重要性

aliyun-cli is the canonical terminal entry point for Alibaba Cloud automation. For package maintainers, it is a multi-platform cloud CLI with real credential storage, release assets, shell completion, and frequent cloud-service surface changes.

### タイムライン

- 2015: Public Git history begins.
- 2018: Changelog records v0.1 with Go refactoring and basic configuration.
- 2018: v3.0.1 tag exists in repository history.
- 2026: v3.4.2 tag appears in repository history.

### Related projects

- Alibaba Cloud OpenAPI: service interface layer used by the CLI.
- ossutil: object-storage toolset integrated according to the changelog.

### ソース

- Git history from https://github.com/aliyun/aliyun-cli.git
- Official README: https://raw.githubusercontent.com/aliyun/aliyun-cli/master/README.md
- Official changelog: https://raw.githubusercontent.com/aliyun/aliyun-cli/master/CHANGELOG.md
- source_facts.package-manager


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.aliyun/config.json

## Credential files

- Unix: ~/.aliyun/config.json
## 他のパッケージマネージャ記録

- Nix - aliyun-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/al/aliyun-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - aliyun-cli - 3.4.8-1: normalized package name match | Arch Linux sync databases: aliyun-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Alibaba Cloud CLI | https://github.com/aliyun/aliyun-cli
- zypper - aliyun-cli - 3.4.8-1.1: normalized package name match | openSUSE Tumbleweed package metadata: aliyun-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Alibaba Cloud CLI | https://github.com/aliyun/aliyun-cli
- winget - Alibaba.AlibabaCloudCLI: normalized package name match | Windows Package Manager source index: Alibaba.AlibabaCloudCLI from https://cdn.winget.microsoft.com/cache/source.msix
- Scoop - main/aliyun: installed executable or alias match | Scoop official bucket manifest trees: bucket/aliyun.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/aliyun-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/aliyun-cli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
