# 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-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--no-prompt`    | `-p`              | **Type:** Boolean<br><br>Skip the security warning and reveal the password without confirmation.                                                    |
| `--target-org`   | `-o`              | **Type:** Value<br>**Required**<br><br>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:

```shell
sf org auth show-user-password
```

Show the password for an org with alias "my-org":

```shell
sf org auth show-user-password --target-org my-org
```

Show the password without the confirmation prompt:

```shell
sf org auth show-user-password --target-org my-org --no-prompt
```

Get the password as JSON for use in scripts:

```shell
sf org auth show-user-password --target-org my-org --json
```
