spec-editor Pro is in early access. Request access

spec-editor element

Element lifecycle commands (deprecate, restore, write-many).

Usage

spec-editor element [OPTIONS] COMMAND [ARGS]...

Subcommands

Subcommand Description
deprecate Deprecate requirements by file or text.
restore Restore deprecated requirements.
write-many Write many elements in one call (MCP write_elements).

spec-editor element deprecate

Deprecate requirements by file or text.

By file: spec-editor element deprecate -p . -f remove.txt
Dry-run: spec-editor element deprecate -p . -f remove.txt --dry-run

Usage

spec-editor element deprecate [OPTIONS]

Options

Option Type Default Description
--path, -p path Project path
--from-file, -f path File describing what to remove
--text, -t text Text describing what to remove
--dry-run flag Show without changes
--json flag Output as JSON

spec-editor element restore

Restore deprecated requirements.

spec-editor element restore -p . NFR-export-pdf MOD-notifications

Usage

spec-editor element restore [OPTIONS] [IDS]...

Arguments

Argument Required
IDS no, repeatable

Options

Option Type Default Description
--path, -p path Project path
--json flag Output as JSON
--dry-run flag Show without changes

spec-editor element write-many

Write many elements in one call (MCP write_elements).

ELEMENTS_FILE is a JSON list of write_element argument objects.

Usage

spec-editor element write-many [OPTIONS] ELEMENTS_FILE

Arguments

Argument Required
ELEMENTS_FILE yes

Options

Option Type Default Description
--path, -p path . Project path
--json flag Output as JSON