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

> Create an Organization API token.

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

Create an Organization API token.

## Usage

```sh wrap theme={null}
astro organization token create
```

## Options

| Option | Description | Valid Values |
| - | - | - |
| `--clean-output` | Print only the token as output. Use this flag in automated workflows. | None. |
| `--description` | The description for the token. | Any string surrounded by quotations. |
| `--expiration` | The expiration date for the token. By default there is no expiration date. | Any integer between 1 and 3650, used to represent days. |
| `--name` | The name for the token. | Any string surrounded by quotations. |
| `--role` | The token's role in the Organization. | Possible values are either `ORGANIZATION_MEMBER`, `ORGANIZATION_BILLING_ADMIN`, or `ORGANIZATION_OWNER`. |

## Examples

```sh wrap theme={null}
astro organization token create --name "My Org Owner API token" --role ORGANIZATION_OWNER
```

## Related commands

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