Authentication Commands
Complete reference for authentication, config inspection, and credential profile management commands.
Complete reference for authentication, config inspection, and credential profile management commands.
📚 Documentation Available
Complete authentication documentation is available in the Authentication Guide. For any command, you can override the active stored profile with --profile or SCALEBOX_PROFILE.
Core Commands
auth login
Authenticate with browser auth or an API key. Use --profile to save credentials under a named profile.
scalebox-cli auth login --profile staging --api-key sk-your-key --server-url https://api.scalebox.devauth whoami
Show the resolved profile and the current authenticated user.
scalebox-cli auth whoamiauth config
Show the config file path, active profile, and current server details.
scalebox-cli auth configauth logout
Remove stored authentication credentials for the active profile. Other saved profiles remain; use auth profile remove to delete a specific profile.
scalebox-cli auth logoutProfile Management
auth profile list
List stored credential profiles and mark the active one.
scalebox-cli auth profile listauth profile use PROFILE_NAME
Switch the active stored profile without logging in again.
scalebox-cli auth profile use prodauth profile remove PROFILE_NAME
Remove one stored profile from ~/.scalebox-cli/config.json.
scalebox-cli auth profile remove old-stagingProfile Selection
When you do not pass an explicit profile, the CLI resolves credentials in this order:
- Root
--profile SCALEBOX_PROFILEcurrent_profilein~/.scalebox-cli/config.json
scalebox-cli --profile prod sandbox list