所有命令 · 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)可选
--projectUse project extension scope (default)可选
--globalUse global extension scope可选

示例

pm package init ./my-extension

相关命令