Skip to content

1ctl auth login

Validate an API token and store the resulting credentials and organization state in the active profile. Create and select a profile before logging in.

1ctl auth login
Flag Type Required Default Description
--token string No — API token for authentication
--help, -h boolean No — Show help

Pass the token explicitly:

Terminal window
1ctl auth login --token <your-api-token>

Or source it from the environment so it does not appear in the command:

Terminal window
export SATUSKY_API_KEY=<your-api-token>
1ctl auth login

The command returns an error when neither source provides a token.