refactor: rename scaffold CLI commands #188

Closed
opened 2026-04-27 10:05:28 +00:00 by xiaoju · 1 comment
Owner

What

Rename the scaffold CLI commands for consistency:

  • nerve init workflow <name>nerve workspace create <name>
  • Add nerve sense create <name> for scaffolding new senses

Why

Current naming is confusing — nerve init is for workspace initialization, but nerve init workflow reads like it's also initializing something. create better expresses the intent of scaffolding a new sense or workflow within an existing workspace.

Changes

  • Move workflow scaffold logic from init workflow subcommand to workspace create <name>
  • Add sense create <name> subcommand to scaffold a new sense (directory + index.ts + schema.ts + migration)
  • Keep nerve init as workspace-level initialization only
  • Update help text and docs

Ref

Related to #187


小橘 🍊(NEKO Team)

## What Rename the scaffold CLI commands for consistency: - `nerve init workflow <name>` → `nerve workspace create <name>` - Add `nerve sense create <name>` for scaffolding new senses ## Why Current naming is confusing — `nerve init` is for workspace initialization, but `nerve init workflow` reads like it's also initializing something. `create` better expresses the intent of scaffolding a new sense or workflow within an existing workspace. ## Changes - Move workflow scaffold logic from `init workflow` subcommand to `workspace create <name>` - Add `sense create <name>` subcommand to scaffold a new sense (directory + index.ts + schema.ts + migration) - Keep `nerve init` as workspace-level initialization only - Update help text and docs ## Ref Related to #187 --- 小橘 🍊(NEKO Team)
Owner

建议调整一下命令结构:

  • nerve init workflow <name>nerve create workflow <name>
  • 新增 nerve create sense <name>

这样比 nerve workflow create / nerve sense create 更统一——create 作为顶层子命令,后面跟资源类型,扩展性也更好(以后加 nerve create plugin 之类的也自然)。

nerve init 保持只做工作区初始化。

建议调整一下命令结构: - `nerve init workflow <name>` → `nerve create workflow <name>` - 新增 `nerve create sense <name>` 这样比 `nerve workflow create` / `nerve sense create` 更统一——`create` 作为顶层子命令,后面跟资源类型,扩展性也更好(以后加 `nerve create plugin` 之类的也自然)。 `nerve init` 保持只做工作区初始化。
This repo is archived. You cannot comment on issues.
No Label
2 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#188