SilverBullet CLI

sb brings your SilverBullet spaces to the terminal: run queries and Space Lua against your live space, and script your knowledge from the shell, a cron job or a coding agent.

# Every open task, from every page
sb query 'from t = index.tasks() where not t.done select t.name'

# The five pages that changed last
sb query 'from p = index.pages() order by p.lastModified desc limit 5 select p.name'

# Everything waiting in @pete’s Mention Inbox
sb eval 'identity.mentions("pete")' --json

# Run a Space Lua script against your live space
sb script --file weekly-review.lua

# JSON when piped, ready for other tools
sb query 'from p = index.pages("adr") select {name = p.name, status = p.status}' --json | jq

What it does

Install

With SilverBullet Server

Download sb for your platform from the latest release on GitHub, next to the server binary, and put it somewhere on your PATH. Then connect it to your space with sb space add.

After that, it can upgrade itself:

sb upgrade

With SilverBullet Desktop

Desktop comes with sb. Open the command palette and run:

Desktop: Install CLI Command