trylle-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTrylle CLI, Skill Guide
Trylle CLI 技能指南
Overview
概述
Use as the primary interface for Trylle platform operations. Use for local version-control work, but do not substitute GitHub-specific tooling for Trylle resources.
trygitBy invoking any script in this skill, you agree to the Terms of Use in .
TERMS_OF_USE将作为Trylle平台操作的主要接口。本地版本控制工作使用,但不要用GitHub特定工具替代Trylle资源。
trygit调用本技能中的任何脚本,即表示您同意中的使用条款。
TERMS_OF_USEWorkflow
工作流程
1. Locate or install the binary
1. 查找或安装二进制文件
Use a local or binary if possible. If it is not on PATH,
trylle-clitrybash
npm i -g @trylle/trylle-cliOne-time commands can be run via , example: .
The rest of documentation will use as a reference.
npx trylle-clinpx trylle-cli versiontryOther ways to get the binary:
undefined尽可能使用本地的或二进制文件。如果它不在PATH中,执行:
trylle-clitrybash
npm i -g @trylle/trylle-cli一次性命令可通过运行,例如:。
后续文档将以作为参考。
npx trylle-clinpx trylle-cli versiontry获取二进制文件的其他方式:
undefinedPython Way
Python 方式
uv tool install trylle-cli
uv tool install trylle-cli
Rust Way (slow and will build from source)
Rust 方式(速度慢,将从源码构建)
cargo install trylle-cli
undefinedcargo install trylle-cli
undefined2. Core usage
2. 核心用法
Important: CLI is tailored for humans to use, so you should add flag for agentic usage of commands.
--json- Check authentication with . Never run
try auth status --jsonor print bot tokens unless the user explicitly requests the secret material and the environment can handle it safely.try auth token --show - Resolve context with inside a checkout. Outside a checkout, pass
try repo context --jsonto commands that support it or pass-R OWNER/NAMEpositionally toOWNER/NAME,try repo view, and similar repository commands.clone - Before a write, run , validate identifiers and the intended scope, then execute only the requested mutation.
try <group> <command> --help - Re-read the affected resource. Return a web URL with when it helps the user continue.
try browse repo|pr|issue
重要提示:CLI是为人类使用设计的,因此在Agent调用命令时应添加参数。
--json- 使用检查认证状态。除非用户明确要求查看机密内容且环境安全,否则切勿运行
try auth status --json或打印机器人令牌。try auth token --show - 在代码检出目录内,使用解析上下文。在检出目录外,对支持该参数的命令传递
try repo context --json,或在-R OWNER/NAME、try repo view等仓库命令中按位置传递clone。OWNER/NAME - 在执行写入操作前,运行,验证标识符和预期范围,然后仅执行请求的变更操作。
try <group> <command> --help - 重新读取受影响的资源。当有助于用户继续操作时,使用返回网页URL。
try browse repo|pr|issue
Route the task
任务路由
- Repositories and daily context: use for current user's summary and
try status.try repo - Pull requests and reviews: use .
try pr - Issue triage: use .
try issue - Dependent branches and pull requests: use .
try stack - CI status and logs: use .
try ci - Repository or organization configuration: use or
try actions.try org - Accounts and operations: use ,
try profile,try ssh-key, ortry automation.try bot - Resource links and uncovered public endpoints: use or
try browse.try api - Local AI and review helpers: use ,
try ai,try explain, ortry draft.try diff
Read references/command-catalog.md for the complete command map and exact argument patterns. Read references/workflows.md when creating or publishing a repository, opening or reviewing a pull request, triaging issues, handling stacks, diagnosing CI, or changing secrets and settings.
- 仓库和日常上下文:使用查看当前用户摘要,使用
try status操作仓库。try repo - 拉取请求和评审:使用。
try pr - 问题分类:使用。
try issue - 依赖分支和拉取请求:使用。
try stack - CI状态和日志:使用。
try ci - 仓库或组织配置:使用或
try actions。try org - 账户和操作:使用、
try profile、try ssh-key或try automation。try bot - 资源链接和未覆盖的公开端点:使用或
try browse。try api - 本地AI和评审助手:使用、
try ai、try explain或try draft。try diff
阅读references/command-catalog.md获取完整命令映射和精确参数模式。在创建或发布仓库、开启或评审拉取请求、分类问题、处理堆叠分支、诊断CI或修改密钥和设置时,阅读references/workflows.md。
Safety and output rules
安全与输出规则
- Treat repository deletion, PR merging or closing, issue closing, label replacement, key deletion, automation toggles, token minting, and secret changes as consequential operations. Show the exact target and inspect current state first.
- Keep credentials out of command literals, logs, files, commit messages, and chat. Use pre-existing environment variables for secret values and unset temporary variables afterward.
- Prefer to complex inline PR, review, issue, or comment bodies.
--body-file - Use whenever available. Human output is intended for terminal reading and may change formatting.
--json - Do not guess unsupported flags. The installed CLI's output is the source of truth.
--help - Do not use when a first-class command exists. For raw calls, use only the public
try apiAPI path needed for the task./v1
- 将仓库删除、PR合并或关闭、问题关闭、标签替换、密钥删除、自动化开关切换、令牌生成和密钥修改视为重大操作。先显示确切目标并检查当前状态。
- 避免在命令字面量、日志、文件、提交消息和聊天中泄露凭据。使用预先存在的环境变量存储机密值,使用后清除临时变量。
- 对于复杂的PR、评审、问题或评论内容,优先使用参数。
--body-file - 尽可能使用参数。面向人类的输出专为终端阅读设计,格式可能会变化。
--json - 不要猜测不支持的参数。已安装CLI的输出是权威来源。
--help - 当有原生命令可用时,不要使用。对于原始调用,仅使用任务所需的公开
try apiAPI路径。/v1
Installing or update the skill
安装或更新技能
If some of the skill files are missing or CLI reference map is outdated, use commands to update the skill:
undefined如果部分技能文件缺失或CLI参考映射过时,使用以下命令更新技能:
undefinedadd
添加
npx skills add trylle-labs/skills
npx skills add trylle-labs/skills
update
更新
npx skills update trylle-labs/skills --skill trylle-cli
Or even using `uv`:uvx upd-skill -g trylle-labs/trylle-cli
undefinednpx skills update trylle-labs/skills --skill trylle-cli
或者使用`uv`:uvx upd-skill -g trylle-labs/trylle-cli
undefinedCurrent CLI gotchas
当前CLI注意事项
- Repository inference depends on a recognizable git remote. Pass explicitly when inference is ambiguous.
-R OWNER/NAME - exits nonzero when the current branch has no open PR instead of returning JSON
try pr current --json. Usenullwhen absence is an expected state.try repo context --json - requires exactly one of
try pr review,--approve, or--request-changes.--comment - replaces the complete label set;
try issue label --setand--addpreserve unrelated labels.--remove - pushes the current branch to
try stack submitbefore creating the pull request.origin - On CLI version 1.0.0, and
try ci logs --followreturn the current log payload rather than continuously polling. Re-run a read command when fresh state is required.try ci watch - List filters such as PR author and issue labels may be applied to the returned page. Increase the page size or paginate before concluding that no matching item exists.
- 仓库识别依赖可识别的git远程仓库。当识别结果不明确时,显式传递。
-R OWNER/NAME - 当当前分支没有开启的PR时,会以非零状态退出,而非返回JSON
try pr current --json。当预期可能不存在PR时,使用null。try repo context --json - 必须指定
try pr review、--approve或--request-changes中的一个。--comment - 会替换完整的标签集;
try issue label --set和--add会保留无关标签。--remove - 在创建拉取请求前会将当前分支推送到
try stack submit。origin - 在CLI 1.0.0版本中,和
try ci logs --follow会返回当前日志内容,而非持续轮询。需要最新状态时重新运行读取命令。try ci watch - 列表过滤器(如PR作者和问题标签)可能仅应用于返回的分页内容。在得出无匹配项的结论前,增加分页大小或进行分页查询。