Create or join a Libretto Cloud organization, store a local session, and issue API keys for cloud runs.This page is about authenticating the CLI and API client to Libretto Cloud. For signing your workflows into target websites, see Website authentication.
Before you start
The examples below assume Libretto is installed in your project and runnable withnpx libretto.
Create a new user account and organization
Useauth signup when you are creating a brand new Libretto Cloud organization:
~/.libretto/auth.json.
A Libretto user can only belong to one organization at a time. If your team already has an organization, use an invite instead of creating a second account.
Log in to an existing account
Useauth login when the account already exists:
~/.libretto/auth.json. If the account is not verified yet, the CLI re-sends the verification email.
Reset a forgotten password
Useauth forgot-password to request a password reset email:
auth login again to save a fresh local session.
To clear local credentials:
Check the active identity
Useauth whoami to confirm which Libretto Cloud account the CLI is using:
LIBRETTO_API_KEY is set, the CLI prefers that key over the stored session cookie.
Invite a teammate
Useauth invite from an account that can manage members in the active organization:
auth accept-invite.
Accept an invite
Useauth accept-invite when you are joining an existing organization:
auth accept-invite only works when that account is not already a member of another organization.
Issue an API key
Use API keys for project.env files, CI, or other non-interactive Libretto Cloud runs:
.env file:
Troubleshooting
- If signup fails because the email already exists, log in to that account or delete the existing Libretto Cloud account before retrying.
- If an invite fails for a logged-in user, make sure that user is not already a member of another Libretto organization.
Deployments
Deploy workflows to Libretto Cloud and investigate cloud runs.
Billing
Open the plans page and manage your subscription.