# Command line

> One CLI for every issue operation. Create, update, query and close work from the terminal, with plain output that coding agents can read and act on.

Canonical: https://kanb.us/features/core-management.html

Kanbus is driven from the command line. The Rust build installs `kbs` (and `kanbus` as an alias), and the Python package installs `kanbus`. Both run the same shared specifications, so the commands, flags and file formats match. Because every command is an ordinary process with text output, a coding agent can use Kanbus the same way it uses `git` or `grep`: no API token, no MCP server and no browser.

::video{src="https://dmhqusv90xmye.cloudfront.net/kanbus-feature-videos/core-management.mp4" poster="https://dmhqusv90xmye.cloudfront.net/kanbus-feature-videos/core-management.jpg" title="Core Management"}

## Start a project and create work

`kbs init` creates a `.kanbus.yml` configuration file and a `project/` directory in the current Git repository. From there, `kbs create` writes a new issue and prints its ID.

```bash
kbs init
kbs create "Implement OAuth2 flow" --type task --priority 1 --label auth
kbs create "Release v1" --type epic
kbs create "Write the login screen" --type task --parent kanbus-a1b2c3
```

The default hierarchy is initiative, epic, task and sub-task, with bug, story and chore as additional types. Priorities are numbers from 0 (critical) to 4 (trivial); the default is 2. Use `--parent` to place a task under an epic, and `--description` to add a Markdown body.

## Find what matters

`kbs list` reads every issue and filters on the fields you care about. `kbs ready` shows open work with no open blockers, and `kbs show` prints one issue with its dependencies and comments.

```bash
kbs list --status open
kbs list --type bug --assignee "you@example.com"
kbs list --parent kanbus-a1b2c3
kbs list --search "login"
kbs ready
kbs show kanbus-a1b2c3
```

For scripts, `--porcelain` prints plain, uncolored rows, and `kbs show <id> --json` returns the issue as JSON. `kbs dep tree <id>` prints the dependency tree for an issue.

## Move work through the workflow

Status changes follow the workflow in `.kanbus.yml`. The default workflow uses `backlog`, `open`, `in_progress`, `blocked` and `closed`, and any transition the workflow does not list is rejected.

```bash
kbs update kanbus-a1b2c3 --claim
kbs update kanbus-a1b2c3 --status blocked
kbs comment kanbus-a1b2c3 "Waiting on the API schema"
kbs close kanbus-a1b2c3 --comment "Fixed in PR #42"
```

`--claim` assigns the issue to you and moves it to `in_progress` in one step. `kbs close` is a shortcut for moving to `closed`. Every change rewrites one JSON file under `project/issues/`, so you commit it like any other change.

:::note{title="Agents see a provenance warning"}
When an agent creates an issue or adds a comment without naming its product, model and session, the write still succeeds but the CLI prints a warning with a one-line fix. Set the `KANBUS_AGENT_*` variables or pass the `--agent-*` flags to tag the work, or pass `--no-agent-provenance` when tagging does not apply. See [Agent provenance](/features/agent-provenance.html).
:::

## Learn more

- [CLI reference](https://github.com/AnthusAI/Kanbus/blob/main/docs/CLI_REFERENCE.md) for every command and flag.
- [Getting started](https://github.com/AnthusAI/Kanbus/blob/main/docs/GETTING_STARTED.md) for installation and a ten-minute walkthrough.
- [Configuration](https://github.com/AnthusAI/Kanbus/blob/main/docs/CONFIGURATION.md) for workflows, types and priorities.
- Related features: [Kanban board](/features/kanban-board.html), [Git-native storage](/features/git-native-storage.html), [Agent provenance](/features/agent-provenance.html).
