Astro CLI
Manage and configure your Astro projects.
v1.42
Update an Astro Deployment API Token.
To use your API token in an automated process, see Authenticate an automation tool.
1astro deployment token update --deployment-id=MOCK_DEP_ID
-d
--description
""
-t
--name
-n
--new-name
-r
--role
DEPLOYMENT_ADMIN
$# The CLI prompts you to input a role for a token with Token ID assigned to a specific Deployment$astro deployment token update <token-id> --deployment-id=clukapi6r000008l58530cg8i$$# The CLI prompts you to input a role for a token identified by its name$astro deployment token update --deployment-id=clukapi6r000008l58530cg8i --name="Token name"$$# The CLI prompts you to select the token from a list and input a role$astro deployment token update --deployment-id=clukapi6r000008l58530cg8i$$# This command assigns a token with the specified TOKEN_ID the role `Deployment Admin` to a Deployment with the following ID.$astro deployment token update TOKEN_ID --deployment-id=clukapi6r000008l58530cg8i --role=DEPLOYMENT_ADMIN
astro deployment token create
astro deployment token list
astro deployment token rotate