pinset which
Find the program a command will run and, when requested, explain its version and selection source.
View source on GitHub ↗When to use
Use to diagnose project Node, Python, Java or other routes. This explains Pinset routing; use shell command lookup separately to inspect PATH.
Examples
pinset which node
pinset which javac --explain
The first prints only a path such as /example/pinset/v3/installs/node/.../bin/node. The second includes version, entry, SDK root, Provider and selection source.
Behavior
Read-only; no network, installation or tool execution. Omit the command for all managed routes. Requires valid locks and installations. Unavailable project selections do not fall back to system tools. Commands absent from a JDK do not fall back to the system JDK either.
Parameters, exit codes and common errors
| Parameter | Meaning |
|---|---|
[command] | Command, such as node, python or javac. |
--global | Inspect global selections. |
--explain | Include selection details. |
Success exits 0; missing selections/installations or invalid routes exit 1. Check list, then install. If bare commands still differ, inspect self shell integration.