所有命令 · internal
pm extension init
Generate a starter extension scaffold with manifest and entrypoint.
Generates an installable starter runtime extension with manifest and entrypoint files.
用法
pm extension 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) | 可选 |
|---|---|---|
| --project | Use project extension scope (default) | 可选 |
| --global | Use global extension scope | 可选 |
示例
pm package init ./my-extension