所有命令 · evidence
pm item docs
Manage docs linked to an item.
Associates relevant documentation paths with tracker items.
用法
pm item docs [options] <id>参数
| <id> | Item id | 必填 |
|---|
选项
| --add <value> | Add linked doc entry (CSV/markdown pairs or - for stdin) | 可选 |
|---|---|---|
| --add-glob <value> | Add linked doc entries from a glob (plain glob or pattern=<glob>,scope=<scope>,note=<text>; repeatable) | 可选 |
| --remove <value> | Remove linked doc by path only (path=<value>, path:<value>, plain path, or - for stdin); does not accept note=/scope= — record removal context with --message | 可选 |
| --migrate <value> | Migrate linked doc paths in-place (from=<prefix>,to=<prefix>; repeatable) | 可选 |
| --note <value> | Note attached to every link added by --add/--add-glob in this invocation (embedded note= wins) | 可选 |
| --list | List linked docs without mutating | 可选 |
| --validate-paths | Validate linked doc paths for existence and file shape | 可选 |
| --author <value> | Mutation author | 可选 |
| --message <value> | History message | 可选 |
| --force | Force ownership override | 可选 |
示例
pm item docs pm-a1b2 --add "path=README.md,note=user-facing command guidance"