Skip to content

Authentication

The Watasu CLI supports two ways to log in: a browser flow for humans and API keys for automation. Once authenticated, the same credentials work for both API calls and Git pushes to git.watasu.io.

Terminal window
watasu login

Opens a browser, you authenticate, and credentials are stored locally. Use this on workstations.

For CI, scripts, or any non-interactive environment:

Terminal window
watasu login --api-key "$WATASU_API_KEY"

Generate API keys in the dashboard. Keep them in your CI provider’s secret store, not in your repo.

Terminal window
watasu whoami
Terminal window
watasu logout

Removes locally stored credentials.

Most commands target a single app. The CLI resolves which one in this order:

  1. --app <name> if you passed it explicitly
  2. --remote <name> if you specified a Git remote name
  3. the default watasu Git remote in the current directory

That’s why running watasu config:set FOO=bar works without --app when you’re inside your app’s repo — the remote tells the CLI which app to target.

  • on workstations, use browser login. It rotates cleanly with your account.
  • in CI, use API keys. Treat them like any other deploy credential.
  • when scripting, always pass --app explicitly. Implicit remote-based resolution is convenient interactively but a footgun in CI.