> ## Documentation Index
> Fetch the complete documentation index at: https://astronomer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# astro workspace token rotate

> Rotate a Workspace API token.

> [!NOTE]
>
> This command is only available on Astro.

Rotate a Workspace API token in your current Workspace.

## Usage

```sh wrap theme={null}
astro workspace token rotate <flags>
```

## Options

| Option | Description | Valid Values |
| - | - | - |
| `--clean-output` | Print only the token as output. Use this flag in automated workflows. | None |
| `--force` | Rotate the token without showing a warning | None |
| `--name` | The name for the token. | Any string surrounded by quotations |

## Examples

```sh wrap theme={null}
astro workspace token rotate --name "My token" --force
```

## Related commands

* [astro workspace token update](https://astronomer.io/docs/cli/v1.47/astro-workspace-token-update.md)
* [astro workspace token delete](https://astronomer.io/docs/cli/v1.47/astro-workspace-token-delete.md)
* [astro workspace switch](https://astronomer.io/docs/cli/v1.47/astro-workspace-switch.md)
