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

@xd-cell/cli

v0.1.2

Published

`@xd-cell/cli` 是 XD Cell 的命令行入口,用于登录、发布和管理站点。用户、CI 和 AI agent 都应通过 CLI 操作,不要直接拼接 pages-api HTTP 请求。

Readme

@xd-cell/cli

@xd-cell/cli 是 XD Cell 的命令行入口,用于登录、发布和管理站点。用户、CI 和 AI agent 都应通过 CLI 操作,不要直接拼接 pages-api HTTP 请求。

安装

npm install -g @xd-cell/cli

要求 Node.js >=22.12.0

安装后运行:

xd-cell help

常用命令

# 登录与状态
xd-cell login
xd-cell logout
xd-cell whoami --json
xd-cell status demo --json
xd-cell --version

# 本地识别与发布
xd-cell detect ./dist --json
xd-cell deploy ./dist demo --visibility org

# 站点
xd-cell sites list --json
xd-cell sites info demo --json
xd-cell sites delete demo --yes --json

# 团队
xd-cell teams --json

# 站点级 Worker secret
xd-cell secrets put demo API_TOKEN
echo "$API_TOKEN" | xd-cell secrets put demo API_TOKEN --stdin
xd-cell secrets delete demo API_TOKEN

# 访问范围与 ACL
xd-cell access get demo --json
xd-cell access set demo --visibility acl --email [email protected]
xd-cell access grant demo --email [email protected]
xd-cell access revoke demo --email [email protected]

# 站点 URL
xd-cell open demo --print

需要完整参数、选项和错误码时,使用对应命令的 help:

xd-cell help deploy
xd-cell help sites
xd-cell help access

非交互使用

支持结构化 JSON 的命令使用 --json。CI 或 agent 可以通过一次性环境变量传入 API token:

XD_CELL_API_TOKEN=<token> xd-cell sites list --json

也可以使用 --token <token> 只为当前命令提供 token。不要把 token 写入项目文件、日志或命令输出;站点级 Worker secret 使用 xd-cell secrets put/delete 管理。

sites delete 在非交互或 JSON 模式下必须显式传入 --yes。删除行为和错误码以 CLI 输出及当前平台契约为准。

配置

xd-cell deploy 可以读取项目中的 xd-cell.config.json,仅保存非敏感发布配置,例如站点名、Worker 入口、assets、vars 和 visibility。凭证和 secret 不应写入配置文件。

开发

pnpm --dir apps/pages-cli test
pnpm --dir apps/pages-cli build

这个 README 会随构建产物一起进入 npm 包;CLI help 是命令参数和 JSON 输出的权威来源。