Skip to main content
nanny auth logs you in to Nanny Cloud so nanny run can sync its event log to your dashboard. It’s optional — enforcement is always local and never depends on it. Sync is automatic once a machine is logged in, no config field to set. See Connect to Nanny Cloud for the full flow.

Commands

login

Log in by approving in your browser.
Approve in the browser and you’re connected. nanny run starts syncing automatically, no config change needed.

Flags

CI and headless machines

A browser flow needs a person. For CI, log in with an API key instead — supplied through NANNY_API_KEY or stdin, never a command argument:
--env is required so it targets the right cloud.

logout

Log out and stop syncing.
Enforcement is unaffected. To revoke the key everywhere, use the dashboard.

Skip sync for one run

To forward nothing for a single run without logging out, pass --no-sync to nanny run: