This command is only available on Astro.
astro workspace
astro workspace token create
Create a Workspace API token.
Create a Workspace API token in your current Workspace.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Create a Workspace API token.
astro workspace token create
| 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 Workspace. | One of WORKSPACE_MEMBER, WORKSPACE_AUTHOR, WORKSPACE_OPERATOR, or WORKSPACE_OWNER. |
astro workspace token create --name "My production API token" --role WORKSPACE_MEMBER
Was this page helpful?