Metadata-Version: 2.4
Name: trello-board-cli
Version: 0.2.0
Summary: LLM-friendly command-line interface for Trello.
Author-email: tranch <tranch.xiao@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/tranch/trello-cli
Project-URL: Issues, https://github.com/tranch/trello-cli/issues
Keywords: trello,cli,llm,automation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31
Requires-Dist: typer>=0.12
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# trello-cli

LLM-friendly command-line interface for Trello.

All commands write JSON to stdout. Errors are written to stderr and exit with
code 1.

## Install from PyPI

The PyPI distribution is named `trello-board-cli` because the `trello-cli`
distribution name is already taken. The installed command remains `trello-cli`:

```bash
pipx install trello-board-cli
```

## Install for local development

```bash
cd ~/Workspace/trello-cli
python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
```

This installs a `trello-cli` executable into the active environment. To deploy
it onto your normal `$PATH`, install it with the Python used by that path, or
use `pipx`:

```bash
pipx install -e ~/Workspace/trello-cli
```

## Credentials

Credential loading priority:

1. `TRELLO_API_KEY` and `TRELLO_TOKEN`
2. `~/.config/trello-cli/config.toml`

Run:

```bash
trello-cli auth
```

## Commands

```bash
trello-cli list-boards
trello-cli whoami
trello-cli list-lists --board-id <id>
trello-cli list-cards --list-id <id>
trello-cli get-card --card-id <id>
trello-cli get-card --card-id <id> --format markdown
trello-cli get-card --short-id 413
trello-cli get-card --short-id 413 --card-filter all
trello-cli create-card --list-id <id> --name "Task title" --desc "Details"
trello-cli create-card --list-id <id> --name "Task title" --text-file notes.md
trello-cli update-card --card-id <id> --name "New title"
trello-cli update-card --card-id <id> --due 2025-12-31T09:00:00.000Z
trello-cli update-card --card-id <id> --closed
trello-cli add-comment --card-id <id> --text "Comment text"
trello-cli add-comment --card-id <id> --text-file comment.md
trello-cli add-comment --short-id 413 --text "Comment text"
trello-cli add-comment --short-id 413 --card-filter all --text "Comment text"
trello-cli list-comments --card-id <id>
trello-cli create-checklist --card-id <id> --name "Checklist"
trello-cli create-checklist --card-id <id> --name "Todos" --items-file /path/to/items.md
trello-cli get-checklist --checklist-id <id>
trello-cli update-checklist --checklist-id <id> --name "Updated checklist"
trello-cli delete-checklist --checklist-id <id>
trello-cli add-checkitem --checklist-id <id> --name "Item text" --checked
trello-cli get-checkitem --card-id <id> --checkitem-id <id>
trello-cli update-checkitem --card-id <id> --checkitem-id <id> --state complete
trello-cli delete-checkitem --card-id <id> --checkitem-id <id>
trello-cli list-checklists --card-id <id>
```

Card descriptions and comments accept Markdown. Literal `\\n`, `\\r\\n`, and
`\\r` sequences supplied by LLMs are normalized to real line breaks before the
request is sent. Use `--text-file` (or `-` for stdin) when passing
multi-line Markdown directly.

## Agent skill

This repository includes `SKILL.md`, an agent-oriented guide for using and
maintaining `trello-cli`. Codex can install it as a skill; other agents can read
the same file as project-specific operating instructions.
