auth
Manage Microsoft/Minecraft accounts. Supports multiple accounts.
clicraft auth [action] [args...]
Actions
| Action | Description |
|---|---|
login | Add or update an account |
logout [account] | Remove an account |
switch [account] | Change active account |
status [account] | Show account info |
list | List all accounts |
Options
| Option | Description |
|---|---|
-f, --force | Skip confirmations |
--verbose | Detailed output |
Examples
clicraft auth login # Add account (opens browser)
clicraft auth status # Show all accounts
clicraft auth switch Player2 # Switch active account
clicraft auth logout # Remove (interactive if multiple)
Login Flow
- Opens Microsoft login URL
- After login, you’re redirected to a blank page
- Copy the full URL from the address bar
- Paste it back into the terminal
Tokens refresh automatically on launch.