> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# truss.login

> Authenticate the Truss CLI with a Baseten API key and persist the credentials.

Authenticates with Baseten using an API key. Persists credentials to `~/.trussrc`, so it only needs to be called once.

**Parameters:**

| Name | Type | Description |
| - | - | - |
| `api_key` | *str* | Baseten API Key |
