所有命令 · 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可选
--defaultsUse 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-packagesInstall all bundled first-party packages during initialization可选
--no-merge-fenceSkip automatic merge-driver installation for a fresh Git-backed tracker可选
--workspace <dir>Initialize repository-local tracker storage at <dir>/.agents/pm可选
--forceAllow initializing tracker files directly in a directory that looks like a workspace root可选
--verboseInclude the full resolved settings tree in the output (default output is a concise summary)可选

示例

pm workspace init

相关命令