novita-sandbox-cli auth command group manages your login session, active team, and local credentials. Credentials are stored locally at ~/.novita/config.json.
Login
Useauth login to sign in to your Novita account. The CLI opens a browser-based authorization page; once you approve, it captures your access token, selects your default team, and writes the credentials to ~/.novita/config.json.
CLI
Output
auth logout first; to switch teams, run auth configure.
Logout
Useauth logout to sign out. This deletes the local credential file at ~/.novita/config.json.
CLI
Logged out.; if you are not logged in, it prints Not logged in, nothing to do.
Info
Useauth info to show information about the current user, including the logged-in email and the selected team.
CLI
Output
Not logged in.
Configure
Useauth configure to change the active team for an existing session. The CLI fetches the teams you belong to and prompts you to select one; the chosen team’s name, ID, and API key are saved back to ~/.novita/config.json.
CLI
novita-sandbox-cli auth login before configuring a team. After selecting, it confirms the chosen team:
Output