所有命令 · internal

pm extension install

Install extension from local path, bundled alias, npm: source, wildcard, or GitHub source.

Installs a compatibility runtime extension from local, npm, GitHub, bundled alias, or wildcard sources.

用法

pm extension install [options] [targets...]

参数

<targets…>Extension source (local path, bundled alias, npm: source, wildcard, or GitHub source)可选

选项

--dry-runResolve sources and estimate copying without destination writes or activation可选
--gh <github-source>Install from GitHub shorthand source (owner/repo[/path])可选
--ref <ref>Git ref/branch/tag for GitHub install sources可选
--projectUse project extension scope (default)可选
--globalUse global extension scope可选

示例

pm package install ./my-extension --project

相关命令