A password, a key or a PIN is never written in the command: anyone on the appliance would read it in the process list. An option that takes a secret takes its source:
| Value | Where the secret is read from |
|---|---|
- |
standard input |
@path |
a file (@/root/pw) |
ask |
asked on the terminal, without echo |
A secret written out in full is refused (exit status 2). A secret is never printed, not even in --json, unless the page itself shows it.