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

yunxiao-cli

v0.1.5

Published

yx - Yunxiao CLI powered by Yunxiao OpenAPI

Downloads

161

Readme

yunxiao-cli

yx 是一个独立的云效 CLI(gh 风格体验)。它直接调用云效 OpenAPI。

30 秒快速开始

  1. 全局安装:
npm i -g yunxiao-cli
  1. 登录并保存 token:
yx auth login --token <YOUR_TOKEN> --org <ORG_ID>
  1. 试跑常用命令:
yx repo list --org <ORG_ID>
yx pr list --org <ORG_ID> --state opened
yx pipeline list --org <ORG_ID>
  1. 查看帮助:
yx --help
yx <command> --help

常用场景

查询 issue(Bug):

yx issue list --org <ORG_ID> --project <PROJECT_ID>

查看个人状态面板:

yx status --org <ORG_ID> --project <PROJECT_ID> --repo <REPO_ID>

issue 命令依赖 Projex 项目(--project)。
可先通过 yx org project-templates 查看模板,再用 yx org project-create 创建项目。

文档入口

开发与验证(仓库开发者)

环境要求:

  • Node.js >= 18
  • 云效个人访问令牌(PAT)

安装与构建:

npm install
npm run build

运行冒烟 e2e(真实 API,会创建/删除临时仓库):

npm run e2e:smoke

冒烟测试会输出结构化步骤报告到 .tmp/e2e/smoke-report-<timestamp>.json
冒烟测试会临时修改并恢复 ~/.yx/config.json(用于 --json 合约检查)。

一致性检查:

npm run check:command-docs
npm run check:command-ux
npm run check:usage-examples

本地运行:

node dist/index.js --help

开发模式:

npm run dev -- --help

配置

配置文件路径:

~/.yx/config.json

查看当前配置:

yx config get

设置单个配置项:

yx config set defaults.organizationId 60d54f3daccf2bbd6659f3ad

删除单个配置项:

yx config unset defaults.organizationId

设置 API base URL:

yx config set-api-base-url --url https://openapi-rdc.aliyuncs.com

原始 API 调用

带 query 的 GET:

yx api get /oapi/v1/platform/user

带 JSON body 的 POST:

yx api post /oapi/v1/flow/organizations/<ORG_ID>/pipelines/<PIPELINE_ID>/runs --body '{"params":"{}"}'
yx api post /api/v4/projects/labels --query organizationId=<ORG_ID> --query repositoryIdentity=<REPO_ID> --body '{"name":"label-a","color":"#336699"}' --json

PUT/PATCH/DELETE 示例:

yx api put /oapi/v1/codeup/organizations/<ORG_ID>/repositories/<REPO_ID>/webhooks/<HOOK_ID> --body '{"description":"updated by api.put","url":"https://example.com/hook"}' --json
yx api patch /oapi/v1/codeup/organizations/<ORG_ID>/repositories/<REPO_ID>/changeRequests/<LOCAL_ID> --body '{"description":"updated by api.patch"}' --json
yx api delete /oapi/v1/codeup/organizations/<ORG_ID>/repositories/<REPO_ID>/webhooks/<HOOK_ID> --json

完整能力(展开查看)

  • yx auth(login/status/logout)
  • yx config(get/set/unset/path/api base URL)
  • yx api(对任意云效 API 路径发起原始 GET/POST/PUT/PATCH/DELETE)
  • yx repo(list/view/create/clone/edit/delete/set-default/branch/protected branch list/view/create/update/delete/tag/check-run list/view/create/update/commit-status list/create/member list/add/update/remove/group list/add/update/remove/clone-username/webhook list/view/create/update/delete)
  • yx pr(list/view/create/edit/status/checkout/comment/comment-reply/comment-edit/comment-delete/comment-resolve/comment-unresolve/comments/threads/patchsets/files/diff/reviews/review/ready/checks/merge/close/reopen)
  • yx pipeline(list/runs/run)
  • yx org(current/list/members/projects/project-templates/roles/project-create/project-delete/project-roles/project-role-add/project-role-remove/project-members/project-member-add/project-member-remove/use)
  • yx workitem(list/view/create/update/comments/comment)
  • yx issue(gh 风格:list/view/create/edit/assign/unassign/close/reopen/lock/unlock/pin/unpin/transfer/delete/develop/status/activities/fields/field-set/comments/comment/comment-edit/comment-delete)
  • yx test(plans/results/cases/case)
  • yx workflow(gh 风格的 pipeline 别名:list/view/run/enable/disable)
  • yx run(gh 风格的 pipeline runs 别名:list/view/cancel/rerun/logs/download/watch)
  • yx search(gh 风格搜索:issues/prs/repos)
  • yx status(gh 风格个人状态面板)
  • yx label(gh 风格标签:list/create/edit/delete + issue label add/remove)
  • yx browse(gh 风格在浏览器打开 repo/pr/issue)
  • yx completion(生成 shell 补全脚本:bash/zsh/powershell)
  • yx doctor(诊断 token/baseUrl/org/repo 与 OpenAPI 连通性)
  • yx alias(gh 风格命令别名:set/list/delete)
  • yx release(gh 风格发行版管理:create/list/view/delete,基于 tag)
  • yx secret(secret set/list/delete,支持 org/repo/pipeline 作用域,底层为 flow variable-group)
  • yx sprint(Projex sprint 管理:list/view/create/update)
  • yx milestone(Projex milestone 管理:list/view/create/update/delete)
  • yx version(Projex version 管理:list/view/create/update/delete)