org auth show-user-password

Show the stored password for an org’s user.

Description for org auth show-user-password 

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.

Flags 

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.

Examples for org auth show-user-password 

Show the password for the default org’s user:

1sf org auth show-user-password

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

1sf org auth show-user-password --target-org my-org

Show the password without the confirmation prompt:

1sf org auth show-user-password --target-org my-org --no-prompt

Get the password as JSON for use in scripts:

1sf org auth show-user-password --target-org my-org --json