npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lppx/ali

v0.0.11

Published

aliyun cli tool

Readme

@lppx/ali

oclif Version

项目介绍

@lppx/ali 是一个阿里云命令行工具,面向需要通过命令行管理阿里云资源的开发者和运维人员。

它将常用的阿里云资源操作封装为简洁直观的命令,支持多配置(Profile)管理与交互式操作,主要能力包括:

  • 账单管理 (bill):查询账单总览、明细,分析费用构成,并导出为 CSV / JSON
  • OSS 存储 (bkt):创建/删除存储空间、查看详情、设置属性、上传文件
  • ECS 实例 (ecs):创建、删除、列出 ECS 实例
  • 镜像管理 (img):管理自定义镜像
  • 网络管理 (vpc / vsw / sgp):管理 VPC、交换机与安全组
  • 配置管理 (config):管理多套阿里云访问凭证与区域配置

安装方法

通过安装包安装

也可以前往 GitHub 的 Release 页面 下载对应平台的安装包(如 Windows 安装程序),直接安装即可使用,无需预先安装 Node.js 环境。

通过 npm 全局安装

npm install -g @lppx/ali

安装完成后,即可在终端使用 ali 命令:

ali --version
ali --help

环境要求

  • Node.js >= 18.0.0(仅 npm 安装方式需要)

使用方法

1. 配置访问凭证

首次使用前,需要先配置阿里云的 AccessKey 与默认区域。运行以下命令进入交互式配置:

ali config set

按提示依次输入配置名称、access_key_idaccess_key_secret,并选择默认区域。配置文件会保存到 ~/.aliops/config.json,支持配置多套凭证(Profile)并随时切换。

查看已有配置:

ali config list

2. 使用命令

配置完成后即可使用各类命令,例如:

# 查看上个月账单总览
ali bill overview

# 分析指定账期的费用构成
ali bill analyze 2025-04

# 导出账单明细为 JSON
ali bill download 2025-04 -f json

# 列出当前区域的 ECS 实例
ali ecs list

# 列出所有 OSS 存储空间
ali bkt list

大多数支持删除、创建的命令都提供交互式选择,直接运行即可按提示操作。

3. 查看帮助

任何命令都可以追加 --help 查看详细用法:

ali --help
ali bill --help
ali ecs list --help

下方列出了全部命令主题,点击可查看各命令的完整文档。

Command Topics