CLI Commands
Authentication Commands
Log in, log out, and show the current Hostess account from the CLI.
Description
The auth commands manage the saved CLI session used by Hostess commands.
Commands
| Command | Description |
|---|---|
hostess login | Start the email and OTP login flow |
hostess logout | Clear the saved CLI session |
hostess whoami | Show the active authenticated user |
Login
hostess loginhostess login runs an interactive email and OTP flow in the terminal. After login, the CLI stores a token in ~/.hostess/config.json.
Logout
hostess logoutUse hostess logout to clear the saved CLI session on the current machine.
Current User
hostess whoamiUse hostess whoami to confirm which account the CLI is using.
CI Authentication
For scripts and CI/CD, prefer HOSTESS_TOKEN or a command-specific --token flag where the command provides one:
export HOSTESS_TOKEN="pat_abc123..."
hostess deploy --env production --no-interactive