c456-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseC456 CLI(c456-cli)
C456 CLI (c456-cli)
在终端通过 调用 C456 的 HTTP API v1,供 Agent 将内容写入/查询 C456,而无需在对话中手写原始 REST 细节。
c456Call C456's HTTP API v1 via in the terminal, allowing Agents to write/query content in C456 without manually writing raw REST details in conversations.
c456安装 CLI
Install the CLI
未安装时可用 或 ;已全局安装则直接 。
npx c456-cli …bunx c456-cli …c456Use or if not installed; use directly if installed globally.
npx c456-cli …bunx c456-cli …c456安装本技能(给其他仓库)
Install This Skill (for Other Repositories)
在目标项目根目录执行(按需加 装到用户目录、 指定客户端):
-g--agent cursorbash
npx skills add xiaohui-zhangxh/c456-cli --skill c456-cli -y若已克隆 c456-cli 仓库,可在该仓库根目录:
bash
npx skills add . --skill c456-cli -y列出远程包内可用技能而不安装:
npx skills add xiaohui-zhangxh/c456-cli -lRun the following in the root directory of the target project (add to install to the user directory, or to specify the client as needed):
-g--agent cursorbash
npx skills add xiaohui-zhangxh/c456-cli --skill c456-cli -yIf you have cloned the c456-cli repository, run the following in the root directory of that repository:
bash
npx skills add . --skill c456-cli -yList available skills in the remote package without installing:
npx skills add xiaohui-zhangxh/c456-cli -l鉴权与站点
Authentication and Site
| 方式 | 说明 |
|---|---|
| API Key | |
| 站点根 URL | 默认 |
短选项冲突:子命令里的 表示收录类型(kind),不要用 传 API Key。Key 仅通过 / 。
-k-kconfigC456_API_KEY-B-u-B--base-urlintake-u| Method | Description |
|---|---|
| API Key | |
| Site Root URL | Defaults to |
Short Option Conflict: In subcommands, stands for intake type (kind). Do not use to pass the API Key. The Key can only be set via / .
-k-kconfigC456_API_KEY-B-u-B--base-urlintake-uAgent 执行方式
Agent Execution Method
- 需要真实读写 C456 时,在沙箱/终端中运行 子命令,并解析其标准输出(含部分命令附带的
c456段)。--- JSON --- - 非交互场景为 等加
intake delete/-f,避免等待终端确认(删除前仍应确认用户意图)。--force - 勿在日志或回复中回显完整 API Key。
- 严禁编造参数:只能使用 (或本仓库源码/文档)明确存在的选项;不确定时先运行
c456 <command> --help再行动。--help
- When real read/write operations on C456 are required, run subcommands in the sandbox/terminal and parse their standard output (including the
c456section attached to some commands).--- JSON --- - Add /
-fto commands like--forcein non-interactive scenarios to avoid waiting for terminal confirmation (still confirm the user's intent before deletion).intake delete - Do not echo the full API Key in logs or responses.
- Never fabricate parameters: Only use options explicitly documented in (or the source code/docs of this repository); run
c456 <command> --helpfirst if unsure.--help
命令速查
Command Quick Reference
配置
- /
c456 config set-key <token>/c456 config set-url <url>/c456 config showc456 config reset
收录
intake- 新建:
c456 intake new [-k signal|tool|channel] [-u <url>] [-t 标题] [-b 正文] - 查看 / 更新 / 删除 / 列表:·
c456 intake show <id>·c456 intake update <id> …·c456 intake delete <id> [-f]c456 intake list [-k] [-q] [-p 页] [-n 每页]
搜索
searchc456 search signals -q "…" [-k kind] [-l n]c456 search playbooks -q "…" [-l n]
打法
playbook- 新建:
c456 playbook new -t "标题" [-b 'Markdown'] [--ref-intake id …] [--ref-playbook id …] - 另有 /
show/list/update(与delete一致)c456 playbook --help
资料
fetch- (
c456 fetch profile -u <url> -p <profile_id>必填;否则 API 返回「不支持的资料类型」)profile_id c456 fetch detect -u <url>
fetch detect- 会调用 创建
POST /api/v1/intakes的收录,并在服务端尝试自动解析资料段。kind=tool - 它不是 的
fetch profile自动推断替代品;抓取社交账号主页(如 YouTube)应直接用:profile_id。c456 fetch profile -p social_account -u "<url>"
profile_id- :产品/官网等普通链接页(解析 name/icon/description)
link_product - :软件包页(npm、RubyGems 等)
package_registry - :代码仓库(GitHub/GitLab/Gitee)
github_origin - :社交账号主页/频道(YouTube/抖音/小红书等)
social_account
Configuration
- /
c456 config set-key <token>/c456 config set-url <url>/c456 config showc456 config reset
Intake
intake- Create:
c456 intake new [-k signal|tool|channel] [-u <url>] [-t title] [-b content] - View / Update / Delete / List: ·
c456 intake show <id>·c456 intake update <id> …·c456 intake delete <id> [-f]c456 intake list [-k] [-q] [-p page] [-n per-page]
Search
searchc456 search signals -q "…" [-k kind] [-l n]c456 search playbooks -q "…" [-l n]
Playbook
playbook- Create:
c456 playbook new -t "title" [-b 'Markdown'] [--ref-intake id …] [--ref-playbook id …] - Additional commands: /
show/list/update(consistent withdelete)c456 playbook --help
Fetch
fetch- (
c456 fetch profile -u <url> -p <profile_id>is required; otherwise the API returns "unsupported profile type")profile_id c456 fetch detect -u <url>
Notes on :
fetch detect- It calls to create an intake with
POST /api/v1/intakes, and the server will attempt to automatically parse the data section.kind=tool - It is not a substitute for automatically inferring the for
profile_id; for social account homepages (e.g., YouTube), directly use:fetch profile.c456 fetch profile -p social_account -u "<url>"
Meaning of types:
profile_id- : Product/official website and other ordinary link pages (parses name/icon/description)
link_product - : Software package pages (npm, RubyGems, etc.)
package_registry - : Code repositories (GitHub/GitLab/Gitee)
github_origin - : Social account homepages/channels (YouTube/Douyin/Xiaohongshu, etc.)
social_account
更完整的说明
More Complete Documentation
见各命令的 与本仓库 、。
--helpREADME.mdDEVELOPMENT.mdSee the of each command and the and files in this repository.
--helpREADME.mdDEVELOPMENT.md分页参数(list 类命令)
Pagination Parameters (List Commands)
- : 1-10000
-p, --page - : 1-100(默认 20;服务端会截断到最大值)
-n, --per-page
- : 1-10000
-p, --page - : 1-100 (default 20; the server will truncate it to the maximum value)
-n, --per-page
内容语法(富文本)
Content Syntax (Rich Text)
CLI 中会用 标注字段类型;Agent 在生成/写入内容时,必须按下表选择语法与约束:
--helptype: <type_name>- →
markdown_kramdownreferences/content-syntax-kramdown.md
The CLI uses to mark field types; when generating/writing content, Agents must select the syntax and constraints according to the following table:
--helptype: <type_name>- →
markdown_kramdownreferences/content-syntax-kramdown.md