--version, -V (Version): Print the tool's version string and exit. Always useful when reproducing bugs. --version prints which version of a tool you are running, then exits. Most tools also accept -V or -v, although -v often means verbose instead, so check before you rely on it. This is the first thing to check when something works on one machine and not on another. Two developers can run the same command against the same code and get different results, simply because one has Node 18 and the other has Node 22. Put the version in every bug report you write. It saves a round of questions.
Frequently asked questions about --version, -V (Version)
What should you keep in mind with --version, -V (Version)?
In a project, pin the versions that matter. A .nvmrc, a composer.json platform setting or a Docker base image tag means the build server and your laptop agree. Then --version becomes a quick check that the pin is actually being used.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Use this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`,
Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.