Getting an access token
- Sign into SaturnCI
- Click on your name in the top right
- Click "Personal Access Tokens"
- Click "Generate personal access token"
- Copy the token
Getting your user ID
- Sign into SaturnCI
- Click on your name in the top right
- Copy your user ID
Using your access token
Example:
curl -u USER_ID:PERSONAL_ACCESS_TOKEN https://app.saturnci.com/api/v1/test_suite_runs
Storing your credentials
You can store your credentials in ~/.saturnci/credentials.json:
{
"user_id": "your-user-id",
"api_token": "your-personal-access-token"
}
The SaturnCI CLI reads credentials from this file automatically.