Install
openclaw skills install which-toolLocate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts.
openclaw skills install which-toolFind the absolute path of executable commands by searching the system PATH. Essential for verifying installations, debugging "command not found" errors, detecting conflicting versions, and scripting command discovery.
# Find where a command is installed
which-tool python
# Find multiple commands at once
which-tool python git docker
# Find all matching paths (not just the first)
which-tool -a node
which-tool COMMAND [COMMAND...] [OPTIONS]
Options:
-a, --all Show all matching paths, not just the first
-s, --silent Exit silently (exit code only, no output)
--readable Show only readable executables
--skip-aliases Skip shell aliases, search real PATH only
--json Output as JSON array
--resolve-symlinks Show real path after resolving symlinks
# Check if a command exists
which-tool python3
# Find all Python installations
which-tool -a python3
# Check multiple tools before running a script
which-tool git node npm docker
# Silent check for scripts (use exit code)
which-tool -s required-tool && echo "Found"
# Resolve actual binary through symlinks
which-tool --resolve-symlinks node
# JSON output for automated checks
which-tool python java go --json
-a flag to see every matching path