> ## 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 organization token rotate

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

Rotate an Organization API token.

## Usage

```sh wrap theme={null}
astro organization 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 organization token rotate --name "My token" --force
```

## Related commands

* [astro organization token update](/docs/cli/v1.43/astro-organization-token-update)
* [astro organization token delete](/docs/cli/v1.43/astro-organization-token-delete)
* [astro organization switch](/docs/cli/v1.43/astro-organization-switch)
