> ## 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

<Info>
  This command is only available on Astro.
</Info>

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](/docs/cli/v1.40/astro-workspace-token-update)
* [astro workspace token delete](/docs/cli/v1.40/astro-workspace-token-delete)
* [astro workspace switch](/docs/cli/v1.40/astro-workspace-switch)
