DELAPARRA
Index
Color
NL
Category: CLI flags

-q, --quiet, --silent (Quiet / Silent)

Explained by Updated

What is -q, --quiet, --silent (Quiet / Silent)?

-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.

Definition source Coders Lingo, CC BY 4.0

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.

At a glance

CategoryCLI flags
Explained by
Updated

More CLI flags terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.