-h, --help (Help): Print the command's usage information and exit. -h or --help prints how a command is used, with its options and arguments, then exits. It is the fastest documentation you have, because it matches the exact version you have installed. Online answers often describe a different version. A flag that existed three years ago may have been renamed, and a new one may solve your problem directly. --help tells you what your copy actually supports.
Frequently asked questions about -h, --help (Help)
What should you keep in mind with -h, --help (Help)?
For subcommands, ask for help at the level you need. git --help describes Git as a whole, while git rebase --help opens the manual page for rebase. In tools like kubectl and docker, docker run --help lists the options for that one command. A few older tools use -h for something else, such as human-readable sizes in ls -h and df -h, so use the long form when in doubt.
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.