Command reference

This page lists the commands of backlog. Command line explains how to connect the command to a server and how to register a project. backlog --help and backlog GROUP COMMAND --help print the same options with their environment variables.

Command structure

backlog [GLOBAL OPTIONS] GROUP [COMMAND] [OPTIONS] [ARGUMENTS]

Global options go before the group. Command options go after the command. Every group and every command has a short alias, shown in parentheses in --help. For example, backlog ta sh 1 is backlog task show 1.

Group or command

Alias

Purpose

task

ta

Manage tasks, links, assignments and comments

memory

mm

Manage notes

projects

pr

List, update and delete projects

search

se

Search projects, tasks, comments and notes

board

bo

Show a project board with ready and claimed tasks

stats

ss

Count open tasks, closed tasks and notes

init

in

Register this directory

whoami

wi

Show the current principal and computer

skills

sk

Show the skills the server offers to MCP clients

watch

wa

Print the changes of a server as they happen

install

is

Register the server with Claude Code and Codex

mcp

mc

Run the MCP server

hash-password

hash_password, pwhash, pw, hash

Print a bcrypt account entry

Local MCP server over stdio describes install and mcp. Remote MCP server over HTTP describes hash-password and mcp --protocol http.

Global options

Option

Environment variable

Meaning

--config FILE

Read default values from this TOML file

--log-level LEVEL

BACKLOG_MCP_LOG_LEVEL

critical, error, warning, info, debug or notset

--url URL

BACKLOG_MCP_URL

MCP HTTP endpoint; empty selects local mode

--user USER

BACKLOG_MCP_USER

HTTP Basic user

--password PASSWORD

BACKLOG_MCP_PASSWORD

HTTP Basic password

--token TOKEN

BACKLOG_MCP_TOKEN

JWT bearer token; excludes Basic authentication

--default-user USER

BACKLOG_MCP_DEFAULT_USER

User name in local mode (default: $USER)

--timeout SECONDS

BACKLOG_MCP_TIMEOUT

Request timeout (default: 120)

-d, --database FILE

BACKLOG_MCP_DATABASE

SQLite file in local mode

-r, --root DIR

BACKLOG_MCP_ROOT

Directory that selects the project (default: the working directory)

-p, --project PROJECT

BACKLOG_MCP_PROJECT

Project name, slug or path inside it

--computer NAME

BACKLOG_MCP_COMPUTER

Name of this computer (default: the short host name)

--generate-config FILE

Write a TOML configuration file and exit; - prints it

The same keys without the dashes, such as url, timeout or computer, set the defaults in the global section of a TOML configuration file. Where the data lives lists the configuration files and their order.

Wider listings

task list, memory list, search, stats and projects take the same scope options. Without them, a listing covers the selected project, or the projects of this computer for projects.

-a, --all-projects

Every project on this computer. projects has no such option.

--computer NAME

Every project on the named computer. This option comes after the command. It is not the global --computer, which names this computer.

--all-computers

Every project on every computer.

Tasks

Command

Alias

Arguments and options

task add

ad

TITLE..., -b/--body, -s/--status, --priority, -t/--tag (repeat)

task create

cr

Write the task in $VISUAL, else $EDITOR, else vi

task list

ls

--status (repeat), --every, --tag, --priority, --limit (default 50), scope options

task show

sh

ID

task edit

ed

ID; edit the fields and the description in the editor

task start

st

ID...; set doing

task block

bl

ID...; set blocked

task close

cl

ID...; set done

task cancel

ca

ID...; set cancelled

task reopen

re

ID...; set todo

task move

mv

ID DESTINATION; the destination is a project slug or a path inside it

task delete

rm

ID, -y/--yes

task comment

co

ID TEXT...

task comments

cm

ID; the comments and the history

task link

lk

TASK RELATION TARGET, --reason

task unlink

ul

TASK RELATION TARGET

task claim

ck

TASK --expected VALUE --assigned VALUE

task assigned

as

--prefix, --limit (default 50), --offset

Statuses are todo, doing, blocked, done, cancelled and deleted. The open statuses are todo, doing and blocked. Priorities are urgent, high, normal and low.

task list shows the open tasks, the most important first. --status selects statuses, --every adds the closed tasks.

task edit changes the agreed description. Write progress reports with task comment instead. task show prints the description and every comment as separate blocks. task comments prints the history without the description.

task cancel keeps the task and its history. task delete removes the task for good. It asks for confirmation only when the task belongs to another project, unless --yes is given.

backlog task add Write the release notes -t docs
backlog task start 1
backlog task comment 1 "Drafted the HTTP section."
backlog task close 1
backlog task list --every

Assignments

task claim changes the assignment of a task only when its current value equals --expected. An assignment has the form username@computer:marker. Take the principal from backlog whoami and add a marker of your choice. The value null means no assignment.

backlog task claim 42 --expected null --assigned 'alice@laptop:agent-k7Q2m'
backlog task claim 42 --expected 'alice@laptop:agent-k7Q2m' --assigned null
backlog task assigned

task assigned lists your assignments in every project that you can read, closed tasks included. --prefix selects another principal or a marker prefix.

Projects

Command

Alias

Arguments and options

projects

pr

--archived, --computer NAME, --all-computers

projects update

pu

TARGET, --preferred-language LANG or --clear-preferred-language

projects delete

pd

TARGET, -y/--yes

board

bo

[PROJECT]; omit it for the selected project

stats

ss

Scope options

init

in

[NAME], --description TEXT, --existing PROJECT

projects lists the projects of this computer with their directories and task counts. Archived projects appear only with --archived.

projects update sets the language for project work and task text, such as en or ru. It does not translate existing tasks. Give exactly one of the two options.

projects delete removes a project with every task and note on its board, and frees its directories for a new registration. It asks for confirmation unless --yes is given.

board shows the project description, its directories, task counts, and the ready and claimed tasks. It also prints the global notes in full.

stats counts open tasks (todo, doing, blocked), closed tasks (done, cancelled) and notes, then breaks the tasks down by status, priority and tag.

backlog board
backlog projects --all-computers
backlog projects update alice/my-project --preferred-language en
backlog projects delete alice/old-project
backlog task move 3 alice/other-project

Computers

One project can bind directories on several computers, and one database can hold the projects of every computer. The global --computer option, the computer configuration key and BACKLOG_MCP_COMPUTER name this computer. Without them, the name is the short host name. Set the name in the configuration file to keep it stable when the host is renamed.

Listings cover this computer. The scope options widen them:

backlog projects --all-computers
backlog task list --computer desktop
backlog search deploy --all-computers

A task moves to a project on another computer with task move, like to any other project.

Notes

The memory group keeps notes: lasting context from the user, such as preferences, agreements and constraints. A note has a title, a Markdown body of at most 1,024 characters, tags and a permanent id. Never write a secret into a note; write where the secret lives.

Command

Alias

Arguments and options

memory add

na

TITLE..., -b/--body, -t/--tag (repeat), --shared

memory append

np

ID TEXT...

memory list

nl

--tag, --shared, --limit (default 50), scope options

memory show

ns

ID

memory edit

ne

ID; edit the title, tags, shared flag and body in the editor

memory delete

nd

ID, -y/--yes

A note is personal by default. --shared makes it visible to the members of the project. A title is unique among your personal notes and among the shared notes of a project: memory add with a known title replaces the body and the tags of that note. memory append adds a paragraph after a blank line.

backlog memory add Release coordination -b "Ask Anna before a customer rollout." -t people
backlog memory append 1 "Anna prefers one day of advance notice."
backlog memory list
backlog memory show 1
backlog search '"rollout"' --kind memory