所有命令 · internal

pm package install

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

Installs pm packages from local paths, npm sources, GitHub sources, bundled aliases, or wildcard/all aliases.

用法

pm package install [options] [targets...]

参数

<targets…>Package 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 package scope (default)可选
--globalUse global package scope可选

示例

pm package install ./my-package --project

相关命令