BarnDog

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.com

The 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.

OptionDescription
--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-browserPrint 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 status

barndog 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 logout

Logging 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 mode 0600). 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.

On this page