
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
aliyun-cli-npm
Advanced tools
阿里云 CLI (Alibaba Cloud CLI) 的 npm 封装包,支持按需下载,轻量高效。
aliyun-cli 是阿里云官方提供的命令行工具,用于管理和调用阿里云服务。本项目提供智能的按需下载机制,首次使用时自动下载对应平台的二进制文件。
无需安装,直接使用:
npx aliyun-cli-npm version
首次运行时会自动下载对应平台的二进制文件。
npm install -g aliyun-cli-npm
安装后可以直接使用 aliyun 命令:
aliyun version
npm install aliyun-cli-npm
然后使用 npx:
npx aliyun-cli-npm configure
或者在 package.json 的 scripts 中添加:
{
"scripts": {
"aliyun": "aliyun"
}
}
npx aliyun-cli-npm help
首次运行时会显示下载进度:
🔍 Binary not found, initiating download...
📡 Trying source: Aliyun CDN (https://aliyuncli.alicdn.com/...)
⏳ Downloading: 45.2% (45.2MB/100.0MB) - 1250KB/s - 43s remaining
✅ Download completed!
📦 Extracting archive...
✅ Extraction completed!
✅ Successfully installed aliyun-cli to /path/to/bin/windows-amd64/aliyun.exe
npx aliyun-cli-npm version
npx aliyun-cli-npm configure
# 查询 ECS 区域列表
npx aliyun-cli-npm ecs DescribeRegions
# 查询 RDS 实例
npx aliyun-cli-npm rds DescribeDBInstances --PageSize 50
# 查询 OSS 存储空间
npx aliyun-cli-npm oss ListBuckets
# 查看所有产品
npx aliyun-cli-npm help
# 查看特定产品的帮助
npx aliyun-cli-npm help ecs
# 查看特定 API 的帮助
npx aliyun-cli-npm help ecs CreateInstance
系统按以下优先级尝试下载源:
阿里云官方 CDN(最快,推荐)
https://aliyuncli.alicdn.com/GitHub Releases(备用源)
https://github.com/aliyun/aliyun-cli/releasesGitHub Mirror(备用源)
如某个源下载失败,系统会自动尝试下一个源。
下载的二进制文件存储位置:
node_modules/aliyun-cli-npm/bin/windows-amd64/aliyun.exenode_modules/aliyun-cli-npm/bin/mac-amd64/aliyunnode_modules/aliyun-cli-npm/bin/mac-arm64/aliyunnode_modules/aliyun-cli-npm/bin/linux-amd64/aliyun如果需要重新下载或更换版本:
# 删除现有二进制文件
rm -rf node_modules/aliyun-cli-npm/bin/*/
# 下次运行时会自动重新下载
npx aliyun-cli-npm version
本包支持两种版本模式:
当前默认配置:从官方 CDN 获取最新版本。
如果遇到下载失败,请检查:
如果出现 "找不到对应平台的aliyun二进制文件" 错误:
bin/ 目录内容,重新下载在 macOS 或 Linux 上,如果遇到权限错误:
chmod +x node_modules/aliyun-cli-npm/bin/*/aliyun
如遇到其他问题,请访问:
传统方案(内置所有平台):
按需下载方案(当前):
aliyun-cli-npm/
├── bin/ # 二进制文件目录(运行时下载)
│ ├── windows-amd64/ # Windows 64位
│ ├── mac-amd64/ # macOS Intel
│ ├── mac-arm64/ # macOS Apple Silicon
│ └── linux-amd64/ # Linux 64位
├── lib/ # JavaScript 封装代码
│ ├── main.js # CLI 入口点
│ ├── platform.js # 平台检测模块
│ ├── executor.js # 二进制执行器
│ └── downloader.js # 多源下载器
├── package.json
└── README.md
# 克隆项目
git clone https://github.com/vtxf/aliyun-cli-npm.git
cd aliyun-cli-npm
# 本地链接
npm link
# 测试(会触发首次下载)
aliyun version
MIT License
本项目使用 MIT 许可证。aliyun-cli 二进制文件的使用遵循阿里云官方许可证。
注意:本项目为第三方封装的 npm 包,非阿里云官方产品。如有问题建议先到 aliyun-cli 官方仓库 查找解决方案。
FAQs
阿里云CLI统一入口 - 支持按需下载,轻量高效的npm封装包
We found that aliyun-cli-npm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.