Authentication
The first time you launch the interactive TUI (buzz with no arguments), you’ll
be prompted to authenticate with Beeminder. You can also authenticate explicitly
at any time with buzz auth login — which is what the other subcommands (buzz today, buzz next, etc.) point you to if no credentials are found.
Either way, the steps are the same:
-
Visit https://www.beeminder.com/api/v1/auth_token.json to get your credentials.
-
Copy the JSON output. It has this format:
{"username":"your_username","auth_token":"your_token"} -
Paste it in when prompted.
-
Press Enter to save.
Multiple accounts
Section titled “Multiple accounts”Logging in as a username buzz hasn’t seen adds it alongside your existing accounts rather than replacing them. Goals from every account appear together — in the TUI grid and in every command — and a goal shared by two accounts is shown once.
buzz auth login # paste alice's credentialsbuzz auth login # paste bob's credentialsbuzz auth list # alice (primary), bobbuzz auth logout bob # remove an accountLogging in again as a username you already have refreshes that account’s token in place.
Where the same goal slug exists on more than one account, buzz shows it
qualified (alice/read, bob/read) instead of twice over as read, and
commands that name a goal accept the same qualifier:
buzz add alice/read 30To act as one account for a whole command, use the global --account flag —
it scopes reads and writes alike:
buzz --account bob todaybuzz --account bob add read 30The primary account — the first one you authenticated as — is the one used
by commands that name no goal: buzz charge, buzz api, and buzz create
(unless you qualify the new goal’s slug).
Re-authenticating
Section titled “Re-authenticating”The interactive TUI auto-prompts for credentials on first run, so you typically
only need buzz auth login to re-authenticate or when a subcommand reports that
no configuration was found.
Piped input is also supported for scripting:
buzz auth login < creds.jsonSee buzz auth login in the command
reference for details.
buzz is built by Nathan Arthur andPine Peak Digital.