trio login
Verify credentials and save them to the current profile after confirmation. The full form is trio auth login.
bash
trio loginOptions
| Option | Description |
|---|---|
--api-key <API_KEY> | Pass the API key explicitly for automation |
--yes | Skip interactive confirmation and save credentials directly |
Non-interactive Login
In CI or scripts without an interactive terminal, combine PYTRIO_API_KEY (or --api-key) with --yes:
bash
PYTRIO_API_KEY="$TRIO_KEY" trio login --yestrio loginuses text output only.- If input or confirmation is required without an interactive terminal, the command exits with status
2. Authentication, network, and server-operation failures exit with status1. - If you only need credentials for the current process without saving them locally, set environment variables instead; see Environment Configuration.