For developers
Beagle in your terminal
macOS, Linux and Windows
beagle
is a command-line program for Beagle CRM: look up customers and projects, add tasks
and notes, and log time without leaving the terminal. It works by hand, in a script,
and as a full-screen view you drive from the keyboard. It is free, open source, and
its code is on GitHub.
Install
On macOS or Linux, paste this into a terminal:
curl -fsSL https://beaglecrm.uk/install-cli | sh
On Windows, paste this into PowerShell:
irm https://beaglecrm.uk/install-cli.ps1 | iex
Either one downloads the newest version for your computer, checks the download
against its published checksum, and installs it for your user only. It does not ask
for an administrator password. If the script says the install folder is not on your PATH, add the line it prints to your shell's start-up file and open a
new terminal.
If you use Homebrew, on macOS or Linux:
brew install BeagleSoftwareUK/tap/beagle
If you use Scoop, on Windows:
scoop bucket add beagle https://github.com/BeagleSoftwareUK/scoop-bucket
scoop install beagle
The builds are not yet signed by Apple or Microsoft. Installing with the commands above works as it is. If you download a build in a browser instead, Windows SmartScreen may say "Windows protected your PC": choose More info, then Run anyway.
Sign in
beagle login
Your browser opens on a Beagle CRM page that names the computer asking, and you
choose the organisation and approve. You sign in there as you always do, with your
password or a magic link and two-factor authentication if you use it, so the
terminal never sees your password. On a computer with no browser, such as a server
you reach over SSH, use beagle login --no-browser
and open the address it prints on another device.
The session is kept in your computer's keychain. A signed-in terminal can do
everything you can do in Beagle CRM, so approve only a computer you trust.
beagle logout
signs it out, and you can sign out any terminal from the web under Settings, Signed-in apps.
Everyday commands
| Command | What it does |
|---|---|
beagle tasks list --today
|
Tasks due today |
beagle tasks add "Call the supplier" --due tomorrow
|
Add a task |
beagle tasks done TSK-00042
|
Complete a task |
beagle projects show PR-00012
|
A project with its phases |
beagle notes add "Agreed the scope" --project PR-00012
|
Add a note to a project |
beagle time add PR-00012 1h30m --note "Site visit"
|
Log time against a project |
beagle journal
|
Today's page of your private journal |
beagle journal add "Rang the supplier"
|
Add a line to today's page |
beagle journal list
|
The days that have a page |
beagle customers list --search acme
|
Find a customer |
beagle search "harbour lane"
|
Search everything |
beagle org switch acme
|
Change organisation |
beagle doctor
|
Check the connection and the sign-in |
A record can be named by its reference, by its name, or by its id. A name that
matches more than one record is refused, not guessed. Dates are typed day first,
as in 27/11/2026, or as today, tomorrow
and yesterday. beagle --help
lists every command.
The journal commands need version 0.5.0 or later; beagle upgrade
fetches it. They read your own journal from the Workspace page and add to the end
of a day's page. Text already on a page, with its formatting and mentions, is
changed only here in the app, and an @name
typed in the terminal stays plain text. Nobody else in the organisation can read
your journal, from the terminal or anywhere else.
The full-screen view
beagle tui
It opens on the tasks that are overdue or due soon. Press 1 to 5 for Home, Customers, Projects, Tasks and Contacts, 6 for your journal, Enter to open a record, and Esc to go back. / searches, n adds a task, x completes or reopens one, a adds a note, t logs time, and ? shows every key. In a wide window the lists run down the left side, and the row under the cursor is shown on a card beside the list.
In the journal, , and . go to the previous and next day, Tab lists the days that have a page, a adds a line to the day on screen, and e opens your editor for several.
In scripts
Add --json
to any command to get the records as JSON, and --all
on a list to fetch every page. Each kind of failure has its own exit code, so a
script can tell "not signed in" from "no such record".
beagle tasks list --today --json | jq -r '.data[].name'
Keeping it up to date
beagle upgrade
This installs the newest version, after checking the download against its published
checksum. The version it replaces is kept, and beagle upgrade --rollback
brings it back. beagle upgrade --check
only says whether a newer version exists.
If you installed with Homebrew or Scoop, upgrade with that instead:
brew upgrade --cask beagle
or scoop update beagle.