base44 login
Authenticate with Base44 using device code flow.Syntax
Authentication
Required: No (this is the login command itself)How It Works
The login command uses OAuth 2.0 device code flow for authentication:- Generates a device code for authentication
- Displays a verification code and verification URI
- Directs you to visit the URI and enter the code
- Polls for authentication completion (up to device code expiration)
- Retrieves access and refresh tokens upon successful authentication
- Fetches and displays your user information
- Saves authentication data locally with expiration timestamp
Interactive Flow
Session Management
- Authentication tokens are stored locally on your device
- Tokens include expiration timestamps
- The session persists across CLI sessions
- Other commands will automatically use your stored credentials
- Use
npx base44 logoutto clear your session - Use
npx base44 whoamito check your current authentication status
Notes
- You only need to login once per device
- If your session expires, you’ll be prompted to login again when running authenticated commands
- The CLI automatically prompts for login when you run commands that require authentication

