auth
Authenticate and manage profiles for the current environment. Profiles store your control plane API URL, project, and optional API key.
llamactl auth [COMMAND] [options]
Commands:
token [--project-id ID] [--api-key KEY] [--interactive/--no-interactive]
: Create profile from API key; validates token and selects a projectlogin
: Login via web browser (OIDC device flow) and create a profilelist
: List login profiles in the current environmentswitch [NAME] [--interactive/--no-interactive]
: Set currently logged in user/tokenlogout [NAME] [--interactive/--no-interactive]
: Delete a login and its local dataproject [PROJECT_ID] [--interactive/--no-interactive]
: Change the active project for the current profile
Notes:
- Profiles are filtered by the current environment (
llamactl auth env switch
). - Non-interactive
token
requires both--api-key
and--project-id
.
Commands
Section titled “Commands”llamactl auth token [--project-id ID] [--api-key KEY] [--interactive/--no-interactive]
- Interactive: Prompts for API key (masked), validates it by listing projects, then lets you choose a project. Creates an auto‑named profile and sets it current.
- Non‑interactive: Requires both
--api-key
and--project-id
.
llamactl auth login
Login via your browser using the OIDC device flow, select a project, and create a login profile set as current.
llamactl auth list
Shows a table of profiles for the current environment with name and active project. The current profile is marked with *
.
Switch
Section titled “Switch”llamactl auth switch [NAME] [--interactive/--no-interactive]
Set the current profile. If NAME
is omitted in interactive mode, you will be prompted to select one.
Logout
Section titled “Logout”llamactl auth logout [NAME] [--interactive/--no-interactive]
Delete a profile. If the deleted profile is current, the current selection is cleared.
Project
Section titled “Project”llamactl auth project [PROJECT_ID] [--interactive/--no-interactive]
Change the active project for the current profile. In interactive mode, select from server projects. In environments that don’t require auth, you can also enter a project ID.
See also
Section titled “See also”- Environments:
llamactl auth env
- Getting started: Introduction
- Deployments:
llamactl deployments