# org auth show-access-token

Show the current access token for an org.

## Description for org auth show-access-token

Because access tokens are sensitive credentials that grant full access to an org, this command prompts for confirmation before revealing the token. 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 access token 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-access-token

Show the access token for the default org:

```shell
sf org auth show-access-token
```

Show the access token for an org with alias "my-org":

```shell
sf org auth show-access-token --target-org my-org
```

Show the access token without the confirmation prompt:

```shell
sf org auth show-access-token --target-org my-org --no-prompt
```

Get the access token as JSON for use in scripts:

```shell
sf org auth show-access-token --target-org my-org --json
```
