Skip to content

Commit 5f45cc3

Browse files
committed
docs: document vp node shorthand in env guide
1 parent a92f2e4 commit 5f45cc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/guide/env.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ This switches to system-first mode, where the shims prefer your system Node.js a
4242
- `vp env install` installs a Node.js version
4343
- `vp env uninstall` removes an installed Node.js version
4444
- `vp env exec` runs a command with a specific Node.js version
45+
- `vp node` runs a Node.js script — shorthand for `vp env exec node`
4546

4647
### Inspect
4748

@@ -81,6 +82,8 @@ vp env list-remote --lts # List only LTS versions
8182
# Execute
8283
vp env exec --node lts npm i # Execute npm with latest LTS
8384
vp env exec node -v # Use shim mode with automatic version resolution
85+
vp node script.js # Shorthand: run a Node.js script with the resolved version
86+
vp node -e "console.log(1+1)" # Shorthand: forward any node flag or argument
8487
```
8588

8689
## Custom Node.js Mirror

0 commit comments

Comments
 (0)