Files
pnpm/pnpm11/docs/cli/with.md
Zoltan Kochan 07839df5c3 docs: move product documentation beside its implementation (#16385)
* docs: move website documentation into the pnpm repository

* docs: keep v11 and v12 documentation beside their implementations

* docs(pnpr): keep registry documentation beside its implementation

* ci: classify product documentation as documentation changes

* test: cover product documentation in Rust CI exclusions

* ci: isolate documentation publishing and support manual sync

* test: make dependency status fixture timestamps deterministic
2026-09-29 15:56:43 +02:00

45 lines
1.1 KiB
Markdown

---
id: with
title: pnpm with
---
Added in: v11.0.0
Run pnpm at a specific version (or the currently running one) for a single invocation, ignoring the `packageManager` and `devEngines.packageManager` fields of the project's manifest.
```sh
pnpm with <version|current> <args...>
```
The downloaded pnpm is installed using the same mechanism as [`pnpm self-update`](./self-update.md) and cached in the global virtual store for reuse on subsequent runs.
## Examples
Run the globally installed pnpm, ignoring the version pinned in the manifest:
```sh
pnpm with current install
```
Run a specific version:
```sh
pnpm with 11.0.0-rc.1 install
```
Use a dist-tag:
```sh
pnpm with next install
```
## Related settings
### pmOnFail
If you want to permanently skip the `packageManager` / `devEngines.packageManager` check (for example, because version management is handled by asdf, mise, Volta, or a similar tool), set the [`pmOnFail`](../settings/cli.md#pmonfail) setting to `ignore` instead of running every command through `pnpm with`:
```yaml title="pnpm-workspace.yaml"
pmOnFail: ignore
```