← All tips Bash: check if a command exists bashscripts Use command -v for portability. command -v pnpm >/dev/null || echo "pnpm missing"