Skip to main content

astro workspace token create

info

This command is only available on Astro.

Create a Workspace API token in your current Workspace.

Usage

astro workspace token create

Options

OptionDescriptionValid Values
--clean-outputPrint only the token as output. Use this flag in automated workflows.None
--descriptionThe description for the tokenAny string surrounded by quotations
--expirationThe expiration date for the token. By default there is no expiration date.Any integer between 1 and 3650, used to represent days
--nameThe name for the token.Any string surrounded by quotations
--roleThe token's role in the Workspace.One of WORKSPACE_MEMBER, WORKSPACE_AUTHOR, WORKSPACE_OPERATOR, or WORKSPACE_OWNER.

Examples

astro workspace token create --name "My production API token" --role WORKSPACE_MEMBER

Was this page helpful?