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

@starhui/huly-cli

v0.20.1

Published

Command-line client for Huly built on top of huly-mcp.

Readme

huly-cli

基于 @firfi/huly-mcp 的 Huly 命令行客户端。

使用方式

无需安装,直接通过 npx 运行:

npx -y @starhui/huly-cli@latest --help

也可以全局安装后使用:

npm install -g @starhui/huly-cli
huly --help

配置

可以通过环境变量配置 Huly,也可以用 --config 指定 dotenv 格式的配置文件。

cp .env.example .env

必填配置:

  • HULY_URL
  • HULY_WORKSPACE
  • HULY_TOKEN,或 HULY_EMAIL 加 HULY_PASSWORD

可选配置:

  • HULY_DEFAULT_PROJECT:issue 命令未传 --project 时使用的默认项目。
  • HULY_CONNECTION_TIMEOUT:透传给 @firfi/huly-mcp 的连接超时时间。

下面这些诊断命令不需要 Huly 凭据:

npx -y @starhui/huly-cli@latest context --json
npx -y @starhui/huly-cli@latest tools --filter issue --json

示例

npx -y @starhui/huly-cli@latest project list --json
npx -y @starhui/huly-cli@latest project statuses HULY --json
npx -y @starhui/huly-cli@latest issue list --project HULY --status-category active --limit 20 --json
npx -y @starhui/huly-cli@latest issue get HULY-123 --project HULY --json
npx -y @starhui/huly-cli@latest issue create --project HULY --title "Fix login redirect"
npx -y @starhui/huly-cli@latest issue update HULY-123 --project HULY --status Done
npx -y @starhui/huly-cli@latest search "login redirect" --json

对于没有封装成一级命令的能力,可以直接调用上游 MCP 工具:

npx -y @starhui/huly-cli@latest call list_projects --data '{"limit":10}' --json
npx -y @starhui/huly-cli@latest call get_issue --field project=HULY --field identifier=HULY-123 --json

命令

  • context:输出脱敏后的 MCP/Huly 运行上下文。
  • --version:输出 CLI 包名、CLI 版本、内置 @firfi/huly-mcp 版本和 Node.js 版本。
  • version-remote:输出底层 @firfi/huly-mcp 版本信息。
  • tools:列出上游 MCP 暴露的工具。
  • project list|get|statuses|create|update|delete:项目相关操作。
  • issue list|get|create|update|delete|label|unlabel|move:常用 Issue 操作。
  • search:全文搜索。
  • call:直接调用 @firfi/huly-mcp 暴露的任意工具。

删除、更新等破坏性命令默认会要求确认;传入 --yes 后跳过确认。

Agent Skill

这个包内置 Codex/OpenAI skill,路径为 skills/huly-cli/SKILL.md。 skill 示例使用 npx -y @starhui/huly-cli@latest,方便 agent 在没有本地安装 CLI 的情况下直接运行。

使用 skills CLI 全局安装:

npx -y skills add starhui-dev/huly-cli --skill huly-cli --global

安装到当前项目时去掉 --global:

npx -y skills add starhui-dev/huly-cli --skill huly-cli

安装前查看仓库中可用的 skills:

npx -y skills add starhui-dev/huly-cli --list --full-depth

自动更新与发布

仓库内置 GitHub Actions:

  • Publish npm:手动触发或每天定时运行;只在 @firfi/huly-mcp 有新版本时发布新版 CLI。
  • MCP patch 更新会发布 CLI patch 版本,MCP minor 更新会发布 CLI minor 版本,MCP major 更新会发布 CLI major 版本。
  • 没有 MCP 更新时,workflow 只输出“无需发布”,不会 bump CLI 版本,也不会发布 npm。

自动发布使用 npm Trusted Publishing。需要在 npm 包设置中添加 GitHub trusted publisher:

  • 仓库:starhui-dev/huly-cli
  • Workflow:publish-npm.yml
  • Environment:留空,除非之后在 workflow 中显式配置 GitHub environment

开发

pnpm install
pnpm check
pnpm pack --dry-run

pnpm check 会依次运行类型检查、单元测试、构建、本地 CLI 冒烟测试和上游 MCP 启动冒烟测试。 真实的 Huly 读写操作需要有效的 Huly 凭据和网络连接。