Get Started with the CLI
Install the Done Bear CLI, sign in, select a workspace, and create your first task.
This tutorial shows you how to install the Done Bear CLI, authenticate with OAuth, choose a workspace, and create your first task. When you finish, you will have a working donebear command and a repeatable terminal workflow.
Before you begin
- Install Node.js 18 or newer.
- Make sure you can open a browser on the same machine where you run the CLI.
1. Install the CLI
Run:
npm install -g @donebear/cli
donebear --versionYou can also inspect the available commands right away:
donebear --help
donebear spec2. Sign in
Run:
donebear auth loginThe CLI opens your browser and waits for the OAuth callback on http://127.0.0.1:8787/auth/callback.
If you need to copy the URL into a browser yourself, run:
donebear auth login --no-openIf the default callback port is busy, run:
donebear auth login --port 8788 --timeout 3003. Verify your auth state
Run:
donebear auth status --json
donebear whoamiauth status confirms whether the CLI is using a stored session, an explicit token, or no auth at all.
4. Pick a workspace
List the workspaces you can access:
donebear workspace listSet the default workspace:
donebear workspace use personal
donebear workspace currentYou can still target another workspace later with --workspace or the workspace=<slug> prefix.
5. Create your first task
Run:
donebear task add "Ship the new docs" --when today
donebear task list --state open
donebear task done <task-id>For a task with more fields, run:
donebear task add "Review API docs" \
--when anytime \
--deadline 2026-03-20 \
--notes "Check REST and GraphQL examples." \
--json6. Explore the rest of the surface
Use the machine-readable command spec when you need exact flags:
donebear spec task add
donebear spec import thingsUse the workspace snapshot when you want a compact summary for automation or agents:
donebear context --json
donebear context --markdownNext steps
- Read CLI overview for the full command surface.
- Read Automate with tokens, JSON, and context if you want CI or agent workflows.
- Use Command reference when you need supported flags and aliases.