Authenticate from the CLI with Truss login
As a part of using Baseten in CI/CD jobs, we now support a truss login
CLI command that allows you to pass an API Key to authenticate. You no longer have to manually edit a ~/.trussrc
file.
This is available both as a CLI command:
truss login --api-key $BASETEN_API_KEY
And as part of the Python SDK:
import truss
truss.login(api_key="YOUR_BASETEN_API_KEY")
Check out the full reference for more information.