Skip to content

CLI Quick Reference

The sf command-line interface is the primary way to interact with Stoneforge. While agents use the CLI internally, human operators typically use the web dashboard — but the CLI is essential for setup, debugging, and scripting.

Global flags

These flags work with any sf command:

FlagDescription
--help, -hShow help
--version, -VShow version
--jsonOutput as JSON (machine-readable)
--quiet, -qMinimal output (IDs only)
--verbose, -vEnable debug output
--actor <name>Specify acting entity
--from <name>Alias for --actor
--db <path>Override database path
--sign-key <key>Private key for signing (base64 PKCS8)
--sign-key-file <path>Path to file containing private key

Command aliases

Many commands have shorter aliases for convenience:

AliasMaps to
add, newcreate
rm, removedelete
lslist
s, getshow
todo, tasksready
done, completeclose
ststatus
depdependency
msgmessage
docdocument

All commands

Core & System

CommandDescription
sf initInitialize a new workspace
sf serveStart server and web dashboard
sf doctorCheck system health
sf statsShow workspace statistics
sf completionGenerate shell completions
sf migrateRun database migrations
sf resetReset workspace
sf createCreate an element
sf listList elements
sf showShow element details
sf updateUpdate an element
sf deleteSoft-delete an element
sf embeddingsInstall, status, reindex, search embeddings
sf exportExport data to JSONL
sf importImport data from JSONL
sf statusShow sync status
sf configView and modify configuration
sf identityIdentity and key management
sf gcGarbage collection
sf historyView element event timeline
sf installInstall Claude skills
sf docsManage documentation library
sf logView operation log entries
sf metricsShow provider metrics and usage statistics

Data & Workflow

CommandDescription
sf taskCreate, list, ready, blocked, backlog, assign, close, reopen, defer, describe
sf dependencyAdd, remove, list, tree
sf planCreate, list, show, activate, complete, cancel, manage tasks
sf workflowCreate, list, show, tasks, progress, delete, promote, gc
sf entityRegister, list, manage hierarchy
sf documentCreate, list, search, update, history, rollback, archive, reindex
sf channelCreate, list, join, leave, members, merge
sf messageSend, reply, list, thread
sf inboxView, read, archive notifications
sf libraryCreate, list, manage documents and hierarchy
sf teamCreate, list, manage members
sf playbookList, show, validate, create

Orchestration

CommandDescription
sf agentRegister, start, stop, list, show, stream agents
sf daemonStart, stop, status, sleep, wake the dispatch daemon
sf dispatchManually dispatch a task to an agent
sf mergeSquash-merge a branch into the default branch
sf poolCreate, list, show, update, delete, status, refresh pools
sf task handoffHand off a task to another agent
sf task completeComplete a task with optional merge request
sf task mergeSquash-merge a task branch and close
sf task rejectReject a task merge and reopen
sf task syncSync task branch with main
sf task merge-statusUpdate merge status