所有命令 · 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-run | Resolve 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 | 可选 |
| --project | Use project extension scope (default) | 可选 |
| --global | Use global extension scope | 可选 |
示例
pm package install ./my-extension --project