Skip to content

wu:edit

← Back to CLI Commands

Edit WU spec fields

pnpm wu:edit --id <wuId>

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.Yes
--spec-file &lt;path&gt;Path to YAML file with updated spec contentNo
--title &lt;text&gt;New title text (replaces existing)No
--description &lt;text&gt;New description text (replaces existing)No
--acceptance &lt;criterion&gt;Acceptance criterion (repeatable, appends to existing; use —replace-acceptance to overwrite)No
--notes &lt;text&gt;Notes text (appends to existing; use —replace-notes to overwrite)No
--replace-notesReplace existing notes instead of appendingNo
--replace-acceptanceReplace existing acceptance criteria instead of appendingNo
--code-paths &lt;path&gt;Code path (repeatable, appends to existing; use —replace-code-paths to overwrite)No
--remove-code-paths &lt;path&gt;Remove specific code_paths entries without replacing the full arrayNo
--rename-code-paths &lt;old=new&gt;Rename specific code_paths entries without rewriting the full arrayNo
--replace-code-pathsReplace existing code_paths instead of appendingNo
--spec-refs &lt;path&gt;Spec/plan reference (repeatable, appends to existing; use —replace-spec-refs to overwrite)No
--remove-spec-refs &lt;path&gt;Remove specific spec_refs entries without replacing the full arrayNo
--rename-spec-refs &lt;old=new&gt;Rename specific spec_refs entries without rewriting the full arrayNo
--replace-spec-refsReplace existing spec_refs instead of appendingNo
--risks &lt;risk&gt;Risk entry (repeatable, appends to existing; use —replace-risks to overwrite)No
--replace-risksReplace existing risks instead of appendingNo
--append[DEPRECATED] Arrays now append by default. Use —replace-* flags to replace.No
--test-paths-manual &lt;tests&gt;Manual test descriptions (repeatable)No
--test-paths-unit &lt;paths&gt;Unit test file paths (repeatable)No
--test-paths-e2e &lt;paths&gt;E2E test file paths (repeatable)No
--remove-test-paths-manual &lt;text&gt;Remove specific manual test entries without replacing the full arrayNo
--rename-test-paths-manual &lt;old=new&gt;Rename specific manual test entries without rewriting the full arrayNo
--remove-test-paths-unit &lt;path&gt;Remove specific unit test paths without replacing the full arrayNo
--rename-test-paths-unit &lt;old=new&gt;Rename specific unit test paths without rewriting the full arrayNo
--remove-test-paths-e2e &lt;path&gt;Remove specific e2e test paths without replacing the full arrayNo
--rename-test-paths-e2e &lt;old=new&gt;Rename specific e2e test paths without rewriting the full arrayNo
--replace-test-paths-unitReplace existing unit test paths instead of appendingNo
--replace-test-paths-e2eReplace existing e2e test paths instead of appendingNo
--replace-test-paths-manualReplace existing manual test descriptions instead of appendingNo
--lane &lt;lane&gt;New lane assignment (e.g., “Operations: Tooling”)No
--type &lt;type&gt;New WU type (feature, bug, refactor, documentation)No
--priority &lt;priority&gt;New priority (P0, P1, P2, P3)No
--initiative &lt;initId&gt;Initiative ID (e.g., INIT-001). Updates WU and initiative wus: arrays bidirectionally.No
--blocked-by &lt;wuIds&gt;Comma-separated WU IDs that block this WU (appends to existing; use —replace-blocked-by to overwrite)No
--replace-blocked-byReplace existing blocked_by instead of appendingNo
--clear-blocked-byEmpty blocked_by entirely (mutually exclusive with —blocked-by/—replace-blocked-by)No
--add-dep &lt;wuIds&gt;Comma-separated WU IDs to add to dependencies array (appends to existing; use —replace-dependencies to overwrite)No
--replace-dependenciesReplace existing dependencies instead of appendingNo
--clear-dependenciesEmpty dependencies entirely (mutually exclusive with —add-dep/—replace-dependencies)No
--plan &lt;uri&gt;Plan file URI (lumenflow://plans/… or repo-relative path)No
--estimated-files &lt;count&gt;Sizing: modified artifacts; files only read are excluded (non-negative integer)No
--estimated-tool-calls &lt;count&gt;Sizing: whole-WU calls; per-session checkpoint safety remains separateNo
--sizing-strategy &lt;strategy&gt;Executable strategy (single-session, checkpoint-resume, orchestrator-worker; decomposition is plan-only)No
--sizing-exception-type &lt;type&gt;Optional bounded sizing exception (docs-only, shallow-multi-file, review-audit); WU type, paths, and strategy must qualifyNo
--sizing-exception-reason &lt;text&gt;Required with an exception type; for review-audit, record modified outputs here and read coverage separatelyNo
--exposure &lt;type&gt;Exposure level (ui, api, backend-only, documentation)No
--no-strictBypass code_paths/test_paths path existence checks. Reality-phase checks run at wu:prep/wu:done. Logged when used.No

← Back to CLI Commands