所有命令 · intake

pm create

Create a new project management item.

Creates a new planning item with deterministic metadata and history.

用法

pm create [options] [type-or-title] [title]

参数

<type-or-title>Item title, or item type when a title follows (e.g. `pm create task "Fix bug"`)可选
<title>Item title when the first argument is an item type可选

选项

--title, -t <value>Item title [required] (or pass title as the first positional argument)必填
--id <value>Explicit item id (normalized with the configured id_prefix)可选
--description, -d <value>Item description (allow empty string)可选
--type <value>Item type (built-ins plus any configured custom types)可选
--template <value>Apply named create template defaults before explicit flags可选
--create-mode <value>Create required-option policy mode: strict|progressive可选
--schedule-preset <value>Scheduling preset for Reminder|Meeting|Event: lightweight可选
--status, -s <value>Item status可选
--close-reason <value>Close reason when creating directly in a terminal status可选
--completed-at <value>Actual completion time for a terminal imported item可选
--priority, -p <value>Priority 0..4可选
--tags <value>Comma-separated tags可选
--add-tags <value>Add tags additively on top of --tags (repeatable; CSV accepted)可选
--body, -b <value>Item markdown body (allow empty string)可选
--deadline <value>Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)可选
--estimate, --estimated-minutes <value>Estimated minutes可选
--acceptance-criteria <value>Acceptance criteria (repeatable; values join with '; '; allow empty string)可选
--definition-of-ready <value>Definition of ready (allow empty string)可选
--order <value>Planning order/rank integer可选
--goal <value>Goal identifier可选
--objective <value>Objective identifier可选
--value <value>Business value summary可选
--impact <value>Business impact summary可选
--outcome <value>Expected outcome summary可选
--why-now <value>Why-now rationale可选
--author <value>Mutation author可选
--message <value>History message (allow empty string)可选
--assignee <value>Item assignee可选
--parent <value>Parent item ID可选
--allow-missing-parentAllow creating with an unresolved parent reference and emit a validation warning可选
--allow-unresolved-depsAllow unresolved local dependency targets and emit explicit warning receipts可选
--reviewer <value>Reviewer可选
--risk <value>Risk level: low|med|medium|high|critical (med persists as medium)可选
--confidence <value>Confidence level: 0..100|low|med|medium|high (med persists as medium)可选
--sprint <value>Sprint identifier可选
--release <value>Release identifier可选
--blocked-by <value>Set latest blocked-by item ID or reason; resolved item IDs append a blocked_by dependency edge可选
--blocked-reason <value>Blocked reason可选
--unblock-note <value>Unblock rationale note可选
--reporter <value>Issue reporter可选
--severity <value>Issue severity: low|med|medium|high|critical (med persists as medium)可选
--environment <value>Issue environment context可选
--repro-steps <value>Issue reproduction steps可选
--resolution <value>Issue resolution summary可选
--expected-result <value>Issue expected behavior可选
--expected <value>Short alias for --expected-result可选
--actual-result <value>Issue observed behavior可选
--actual <value>Short alias for --actual-result可选
--affected-version <value>Affected version identifier可选
--fixed-version <value>Fixed version identifier可选
--component <value>Issue component ownership可选
--regression [value]Regression marker; bare flag means true, or pass true|false|1|0可选
--customer-impact <value>Customer impact summary可选
--dep <value>Seed dependency entry (key=value CSV, markdown key:value lines, or - for stdin; repeatable)可选
--type-option <value>Type option key=value or key=<name>,value=<value> (also accepts key:value and markdown pairs; use - for stdin; repeatable)可选
--field <name=value>Set a field declared by an active extension registerItemFields registration (repeatable)可选
--unset <field>Clear scalar metadata field by name (repeatable)可选
--reminder <value>Seed reminder entry at=<iso|relative>,text=<text> (also accepts markdown pairs and - for stdin; repeatable)可选
--event <value>Seed event entry start=<iso|relative>,end=<iso|relative>,duration=<relative|30min|PT30M>,title=<text>,all_day=<true|false>,recur_* fields (also accepts markdown pairs and - for stdin; repeatable)可选
--comment <value>Seed comment entry (text=<value> CSV/markdown pairs or - for stdin; repeatable)可选
--note <value>Seed note entry (text=<value> CSV/markdown pairs or - for stdin; repeatable)可选
--learning <value>Seed learning entry (text=<value> CSV/markdown pairs or - for stdin; repeatable)可选
--file <value>Seed linked file entry (CSV/markdown pairs or - for stdin; repeatable)可选
--test <value>Seed linked test entry (CSV/markdown pairs or - for stdin; repeatable)可选
--doc <value>Seed linked doc entry (CSV/markdown pairs or - for stdin; repeatable)可选
--stdin-jsonRead a full item JSON document from stdin; explicit flags override document values可选
--body-file <path>Load body from a file or stdin (-); conflicts with --body可选
--clear-depsClear dependency entries可选
--clear-commentsClear comments可选
--clear-notesClear notes可选
--clear-learningsClear learnings可选
--clear-filesClear linked files可选
--clear-testsClear linked tests可选
--clear-docsClear linked docs可选
--clear-remindersClear reminders可选
--clear-eventsClear events可选
--clear-type-optionsClear type options可选
--allow-duplicateExplicitly create even when strict similarity governance finds likely duplicates可选

示例

pm create --title "Harden lock flow" --description "Improve stale lock handling" --type Task --status open --priority 1 --message "Create lock hardening task" --create-mode progressive

相关命令