vis install
Install project dependencies via the detected package manager
vis install
Install project dependencies using the detected package manager (pnpm, npm, yarn, or bun). Delegates to the native PM with vis's security enforcement applied.
Usage
vis install [options]Examples
# Install all dependencies
vis install
# Install with frozen lockfile (CI)
vis install --frozen-lockfile
# Install without optional dependencies
vis install --no-optional
# Force re-install
vis install --forceOptions
| Option | Alias | Default | Description |
|---|---|---|---|
--frozen-lockfile | false | Error if lockfile needs updating | |
--force | false | Force re-resolution of all deps | |
--no-optional | false | Skip optional dependencies | |
--ignore-scripts | false | Skip lifecycle scripts | |
--lockfile-only | false | Update lockfile without installing | |
--offline | false | Use cached packages only | |
--dev | false | Install devDependencies only | |
--filter | Filter to specific workspace packages |
How It Works
flowchart TD
A["vis install [options]"] --> B["Detect package manager\n(pnpm, npm, yarn, bun)"]
B --> C["Build install command\nfrom options"]
C --> D{Frozen\nlockfile?}
D -- yes --> E["Map to CI mode\n(npm ci / pnpm --frozen-lockfile)"]
D -- no --> F["Standard install"]
E --> G["Run native\ninstall command"]
F --> G
G --> H{Exit code\n= 0?}
H -- yes --> I["Done"]
H -- no --> J["Report failure"]Aliases
vis i # Short for vis install