org auth show-user-password

Show the stored password for an org’s user.

This command shows only passwords that were generated locally in your DX project with either the “org generate password” or “org create user” CLI command. If you generated a password for a user in Setup in your org, you can’t show it with this command.

Because passwords are sensitive credentials, this command prompts for confirmation before revealing it. Skip confirmation by specifying either the –no-prompt or –json flag.

Flag Name (Long)Flag Name (Short)Description
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑no‑prompt‑pType: Boolean

Skip the security warning and reveal the password without confirmation.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Show the password for the default org’s user:

Show the password for an org with alias “my-org”:

Show the password without the confirmation prompt:

Get the password as JSON for use in scripts: