migrations
init 以 replace 模式采用 navori 时备份原 harness,可恢复。
用法
navori migrations <list|restore> [args]
参数
list [--limit <n>] [--json] 列出迁移备份,默认最近 20 个。 restore <timestamp> <repo> [--cwd <dir>] [--yes] [--json] 恢复原始 harness,两个值均来自 migrations list。 示例
没有备份时
$ navori migrations list ● No migrations found. They are created when 'init' adopts navori in replace mode (the interactive wizard) on a repo with existing Claude infrastructure. └ Done
用于脚本
$ navori migrations list --json
{
"migrations": [],
"totalAvailable": 0
} 注意事项
- backup 覆盖 navori 每次写入,migrations 保存引入 navori 前的 .claude/。
- 仅 replace 模式产生备份;coexist 不替换,所以无需备份。
- 位于 ~/.navori/migrations/,仅属于本机。