Good naming, consistency, clear communication, and discoverability. These are things that do not only apply to command line programs, but to general development as well.
PHP
Idempotency: What, Why and How
A deep dive into idempotency, from the theory behind safe retries to a practical Laravel implementation using the Laravel Idempotency package. Read more