Replace credentials, tokens, account IDs, personal paths, private hostnames, and customer data with clearly marked placeholders. Review both the command and its output; a verbose error or response header can reveal more than the command itself.
Preserve quoting, flags, and input shape so the example still teaches the correct syntax. Use example.com for a demonstration host and explain which values a reader must provide. If a secret has already appeared in a public thread, rotate it rather than simply editing the post.
Try the sanitized command against a safe test target before sharing it.