所有命令 · internal
pm package init
Generate a starter package scaffold with package metadata, manifest, and entrypoint.
Generates an installable starter pm package with package metadata and a root extension entrypoint.
用法
pm package init [options] <target>参数
| <target> | Scaffold target directory path | 必填 |
|---|
选项
| --capability <kind> | Capability the starter targets (commands|hooks|search|importers|schema|profile|renderers|parser|preflight|services; default commands) | 可选 |
|---|---|---|
| --declarative | Scaffold the composeExtension blueprint starter (any capability) | 可选 |
| --project | Use project package scope (default) | 可选 |
| --global | Use global package scope | 可选 |
示例
pm package init ./my-package