-q, --quiet, --silent (Quiet / Silent): Suppress non-essential output. Useful in scripts where you only care about the exit code. Quiet mode suppresses everything except errors, or sometimes even those. grep -q prints nothing and only returns an exit code. curl -s hides the progress bar. composer install -q keeps the build log short. This is mostly for scripts. A script often only needs to know whether something succeeded, and the exit code already says that. if grep -q 'ERROR' app.log; then ... is cleaner than capturing output you will never read.
Frequently asked questions about -q, --quiet, --silent (Quiet / Silent)
What should you keep in mind with -q, --quiet, --silent (Quiet / Silent)?
Be careful not to hide the information you need when something fails. curl -s also hides error messages, which is why curl -sS exists: silent progress, but errors still shown. In CI, keep enough output to diagnose a broken build without running it again. Quiet logs are pleasant until the day you need them.
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.