Skip to content

CLI

命令 作用
ruby-anything go [-- <start command>] 把迁移推进到下一阶段,并写入 rails/port/TASK.md
ruby-anything status [<repo>] [--json] 迁移停在哪里:阶段、下一步、未完成的单元(只读;在新会话中先运行它)
ruby-anything analyze <repo> 规划:路由、模板、按批次划分的函数、依赖、决策
ruby-anything bridge <repo> <unit> 在 app/services 中为一个函数生成 Ruby 骨架代码
ruby-anything record <repo> <unit> 在边界用例、--inputs、--from-tests -- <test cmd>、--pin-clock 上录制原函数
ruby-anything diff <repo> <unit> 针对 Ruby 移植版回放用例(必须是 N/N)
ruby-anything gate <repo> <unit> | --all | --app gate 通过才算完成
ruby-anything rules <repo> [--add "<rule>"] 你纠正过的行为,之后的每个部分都会遵守
ruby-anything drift <repo> 原应用在录制之后是否有变化?
ruby-anything app record <repo> --http -- <start command> 通过 HTTP 录制整个原应用(副作用用 --effect-env、--db-dump)
ruby-anything app record <repo> --cli --inputs cli.jsonl -- <command> 录制一个 CLI 工具
ruby-anything app front-door <repo> 代理尚未移植路由的 Rails 应用
ruby-anything app wire <repo> <unit> --route "GET /path/:id" 把一个路由交给 Rails(CLI 用 --command <name>)
ruby-anything app replay <repo> 通过 Rails 回放每个 HTTP 用例(--original、--case)
ruby-anything app status <repo> 回退率、已接入的路由、已完成的单元
ruby-anything app lift <repo> 在没有任何回退后移除代理
ruby-anything setup | doctor | mcp 为 Agent 安装、检查运行时、MCP 服务器
在 GitHub 上编辑此页 →