create access-token
#
OverviewTo support non-interactive environments, you can generate access tokens to authenticate against the Spawn API.
#
Command#
TutorialIn this tutorial we create an access token for the purpose of using the spawnctl
in a CI environment.
As a prerequisite you should've followed the instructions to install spawnctl
Run the following command to create an access token.
This access token cannot be retrieved after this command. So make sure you store it somewhere safe to retrieve later.
Future
spawnctl
commands can use the access token to avoid requiring the interactive flow provided byspawnctl auth
.