Prompts for a new password and sends it to the server hashed, so the value never appears in shell history or the process list. Add a role name to change someone else's password. Related: PGPASSWORD for scripting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.