所有命令 · workspace
pm workspace init
Initialize pm storage and defaults for the current workspace or a path-like tracker target.
Bootstraps tracker storage and settings so all other commands can run safely.
用法
pm workspace init [options] [prefix-or-path]参数
| <prefix-or-path> | Optional id prefix, or path-like tracker target such as ./pm-sandbox | 可选 |
|---|
选项
| --prefix, --id-prefix <value> | Set the item ID prefix (alias for the positional prefix) | 可选 |
|---|---|---|
| --preset <value> | Governance preset for new setups: minimal|default|strict | 可选 |
| --defaults | Use non-interactive setup defaults without opening the wizard | 可选 |
| --author <value> | Set the default mutation author for this project | 可选 |
| --agent-guidance <mode> | Agent guidance mode: ask|add|skip|status | 可选 |
| --type-preset <name> | Register domain item types during init: agile|ops|research | 可选 |
| --with-packages | Install all bundled first-party packages during initialization | 可选 |
| --no-merge-fence | Skip automatic merge-driver installation for a fresh Git-backed tracker | 可选 |
| --workspace <dir> | Initialize repository-local tracker storage at <dir>/.agents/pm | 可选 |
| --force | Allow initializing tracker files directly in a directory that looks like a workspace root | 可选 |
| --verbose | Include the full resolved settings tree in the output (default output is a concise summary) | 可选 |
示例
pm workspace init