Authentication
Sign in, check your session, and sign out.
barndog login
Signs in to a BarnDog server through your browser.
barndog login --server https://barndog.example.comThe browser opens a sign-in page. Check that the code it shows matches the one in your terminal, then approve. Press Ctrl+C to cancel.
| Option | Description |
|---|---|
--server <url> | The BarnDog server origin. First interactive login prompts when omitted; later logins reuse the saved server. Noninteractive login requires this option if no server is saved. |
--no-browser | Print the sign-in URL and code instead of opening a browser. Useful over SSH or in a container. |
An admin must add you to the organization before you can sign in.
Sessions last up to 30 days. They can end sooner if your sign-in expires or an admin removes your access.
barndog auth status
Verifies your current session and shows your developer handle, organization, and role.
barndog auth statusbarndog logout
Revokes this machine's credential on the server and deletes the local copy. Your saved server stays the default for the next login.
barndog logoutLogging out can't remove Skills that were already downloaded to this machine.
How credentials are stored
- Credentials live in
~/.barndog/credentials.json, readable only by you (file mode0600). Don't share this file. - Your identity provider's keys and refresh tokens stay on the server.
- The CLI requires HTTPS, except for local development servers on
localhost, and refuses redirects. - Login never prints your credential.
Before switching to a different server, organization, or developer, remove the Skills you installed from the current one.