-a, --all (All): Include everything — hidden files, stopped containers, tracked and untracked changes — instead of just the default subset. -a or --all tells a command to include what it normally hides. ls -a shows hidden files whose names start with a dot. docker ps -a lists stopped containers as well as running ones. git add -A stages new, changed and deleted files in one go.
The default view is usually the one you need most often, which is why the rest is hidden. When something seems to be missing, -a is a good first guess. A container that crashed on start will not appear in docker ps, but it will appear in docker ps -a, along with its exit code.
What should you keep in mind with -a, --all (All)?
Take care when you combine --all with an action instead of a listing. git add -A will also stage files you did not mean to commit, such as a local .env file. Check git status first.
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.