erk-exec

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

erk exec Guide

erk exec 指南

Quick Start

快速入门

Before running any
erk exec
command, check syntax with
-h
:
bash
erk exec <command> -h
运行任何
erk exec
命令前,请使用
-h
参数查看语法:
bash
erk exec <command> -h

Commands by Workflow

按工作流分类的命令

PR Review Operations

PR评审操作

When addressing PR review comments or resolving threads:
CommandPurpose
get-pr-review-comments
Fetch review comments (use
--pr N
)
resolve-review-thread
Resolve a thread (use
--thread-id
)
reply-to-discussion-comment
Reply to discussion comment
get-pr-discussion-comments
Fetch discussion comments
Typical workflow:
  1. erk exec get-pr-review-comments --pr 123
  2. Make code changes
  3. erk exec resolve-review-thread --thread-id PRRT_xxx
处理PR评审意见或解决讨论线程时可使用以下命令:
命令用途
get-pr-review-comments
获取评审意见(使用
--pr N
指定PR编号)
resolve-review-thread
解决讨论线程(使用
--thread-id
指定线程ID)
reply-to-discussion-comment
回复讨论评论
get-pr-discussion-comments
获取讨论评论
典型工作流:
  1. erk exec get-pr-review-comments --pr 123
  2. 进行代码修改
  3. erk exec resolve-review-thread --thread-id PRRT_xxx

Plan Operations

计划操作

When working with erk-plans:
CommandPurpose
plan-save
Save plan (backend-aware)
get-plan-metadata
Get metadata from plan
setup-impl-from-pr
Set up impl-context from PR
get-issue-body
Fetch issue body (REST API)
update-issue-body
Update issue body (REST API)
处理erk-plans时可使用以下命令:
命令用途
plan-save
保存计划(后端感知)
get-plan-metadata
获取计划元数据
setup-impl-from-pr
从PR配置实现上下文
get-issue-body
获取issue正文(通过REST API)
update-issue-body
更新issue正文(通过REST API)

Session Operations

会话操作

When working with Claude Code sessions:
CommandPurpose
list-sessions
List sessions for current project
preprocess-session
Compress session for analysis
upload-session
Upload session to gist
download-remote-session
Download session from gist
处理Claude Code会话时可使用以下命令:
命令用途
list-sessions
列出当前项目的所有会话
preprocess-session
压缩会话用于分析
upload-session
将会话上传到gist
download-remote-session
从gist下载会话

Marker Operations

标记操作

For inter-process communication:
CommandPurpose
marker create
Create marker file
marker exists
Check if marker exists
marker read
Read marker content
marker delete
Delete marker file
All marker commands require
--session-id
.
用于进程间通信:
命令用途
marker create
创建标记文件
marker exists
检查标记是否存在
marker read
读取标记内容
marker delete
删除标记文件
所有标记命令都需要传入
--session-id
参数。

Full Reference

完整参考

For complete syntax details on all 65+ commands:
@reference.md
如需了解全部65+个命令的完整语法细节,请查看:
@reference.md