Skip to main content
The user group handles authentication. Tokens are stored securely in your OS keychain.
CommandPurpose
major user loginLog in and select an organization.
major user logoutLog out and remove credentials.
major user whoamiShow current user and organization.
major user gitconfigSet your GitHub username.

major user login

major user login
When to use: authenticating with Major. What happens:
  1. Opens the login page in your browser.
  2. Securely stores your session token.
  3. Prompts you to select your default organization.
You can re-run login anytime to refresh your token or switch organizations.

major user logout

major user logout
When to use: signing out or switching accounts. What happens:
  1. Revokes your session.
  2. Removes your stored credentials.

major user whoami

major user whoami
When to use: checking your current login status. What happens: Displays your email and current organization.

major user gitconfig

major user gitconfig
When to use: setting up or updating your GitHub username. What happens:
  1. Shows your currently stored username (if any).
  2. Prompts you to enter or update your GitHub username.
  3. Saves the username so Major can automatically invite you to new repositories.