The KanbanThing CLI

kanbanthing is a terminal client for a KanbanThing board. It signs in to a board with its link and password, then creates boards, lists, adds, edits and moves cards, and manages columns from a shell. Every command takes --json, so a script or an AI agent can drive the same board a person has open in a browser.

Install

Requires Node 20 or newer. The CLI is not on npm yet — until it is, build it from source:

git clone https://github.com/tronschell/kanban-cli
cd kanban-cli
npm install && npm run build
node dist/cli.js --help

The binary is called kanban. Once the package is published, this becomes:

npm i -g kanbanthing

Quickstart

Sign in with the board link you already share with your team. The board password is asked for once and kept on this machine.

kanban login https://www.kanbanthing.com/board?id=<board-id>
kanban add "Write the spec"
kanban ls
kanban mv "Write the spec" Done

Commands

CommandMeaning
login <board-url>Sign in to a board and remember it on this machine
logoutForget the stored credentials for a board
boardsList the boards you are signed in to
use <alias>Set the board later commands run against
create <name>Create a board and sign in to it
boardShow the current board: name, columns and expiry
ls [--column <name>] [--all]List cards, optionally in one column
add <title>Add a card
mv <card> <column>Move a card to another column
edit <card>Change a card's title, description, colour or due date
rm <card>Delete a card
columnsList the columns on the board
column add <name>Add a column
column rename <col> <name>Rename a column
column rm <col>Delete a column and the cards in it
rename <name>Rename the board
passwordChange the board password
sharePrint the board's share link
deleteDelete the board
versionPrint the CLI version
help [command]Show usage for the CLI or one command

Every command runs against the board set by use, or the one named by --board.

Global flags

FlagMeaning
--jsonMachine-readable output on every command
--board <alias|uuid>Run this command against a board other than the default
--no-colorPlain output with no ANSI escapes
--helpUsage for the CLI, or for the command in front of it
--versionPrint the version and exit

For AI agents

Add --json to any command and it prints a JSON object instead of formatted text. To sign in without a prompt, set KANBAN_BOARD to a board id or URL and KANBAN_PASSWORD to its password.

export KANBAN_BOARD=<board-id>
export KANBAN_PASSWORD=<board-password>
kanban ls --json

Exit codes:

CodeMeaning
0Success
1Error
2Usage error
3Authentication failure
4Not found

Source

The CLI is open source at github.com/tronschell/kanban-cli.

Back to home