navori
navori

preset

为没有官方预设的技术栈,在 .navori/presets/ 创建本地预设。

用法

navori preset init <id>

参数

<id> 预设 id 使用 kebab-case,拒绝保留值 custom 及其他格式。
--cwd <dir> 仓库目录,默认为当前目录。

示例

创建本地预设

$ navori preset init express-fastify
✓ .navori/presets/express-fastify/
✓ navori.config.json → preset: express-fastify
→ run 'navori render --apply' to materialize it

注意事项

  • 生成 <id>.json 清单、managed/stack.md 技术栈上下文及 skills/ 下的示例技能。
  • 预设提交在 .navori/presets/,解析时本地优先于内置。
  • 用于没有官方预设的技术栈,检测器找不到预设时会提示。