⌨️claude auth login Command
Also known as claude auth login, claude auth logout, claude auth
It signs you in from the shell. claude auth logout signs you out.
Think of it like
It is like you sign the book at the front desk so you can go in.
Example
Emma sets up a new laptop with a script. The script runs claude auth login --sso, she finishes the sign-in in the browser, and the setup goes on.
Why it matters
Setup scripts can sign in as a step, the same way every time, with no chat to open.
Definition
Example code
bash
claude auth login --consoleCommon mistake
Key takeaways
- 1From the shell. No session.
- 2Pick a way. --console, --sso.
- 3logout. Signs you out.