Skip to main content

A gh-style command line interface for Trello

Project description

trapi-cli

A gh-style command line interface for Trello.

Distribution name trapi-cli; the installed command is trello and the importable package is trello_cli.

Install

As a standalone CLI:

uv tool install trapi-cli          # from PyPI
uv tool install -e .               # from a local checkout (editable)

As a dependency of another project (to reuse the client in code):

uv add trapi-cli
from trello_cli.api import TrelloClient
from trello_cli.config import load_credentials

client = TrelloClient(*load_credentials())
client.get("/members/me")

The importable surface (TrelloClient, load_credentials, match_ref) exists for the CLI's own use — treat it as unstable until a 1.0 release.

Setup

  1. Go to https://trello.com/power-ups/admin and create a (private) Power-Up
  2. Copy the API key
  3. Click the Token link next to the key to generate a user token
  4. Copy .env.example to .env (or ~/.config/trello-cli/.env) and fill both in

Verify with:

trello auth status

Usage

Boards, lists, and cards can be referenced by id, shortLink, or (partial) name.

trello board list                     # your boards
trello board view "My Board"          # lists + card counts
trello list list -b "My Board"
trello list add "Doing" -b "My Board"

trello card list "My Board"           # all cards
trello card list "My Board" -l Doing  # one list
trello card view abc123XY --comments
trello card add "Fix the thing" -b "My Board" -l "To Do" -d "details" --due 2026-07-31
trello card edit abc123XY --name "New title" --clear-due
trello card move abc123XY -l Done
trello card archive abc123XY          # --undo to restore
trello card comment abc123XY -m "done in #42"

trello search "invoice"

Every command takes a global --json flag for scripting:

trello --json card list "My Board" | jq '.[].name'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trapi_cli-0.1.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trapi_cli-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file trapi_cli-0.1.0.tar.gz.

File metadata

  • Download URL: trapi_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trapi_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 452154218bbbbb60ce336ae6967b0b87d70d5b4aaa36b91ff46149f52965684e
MD5 299f0ddbb8e0ffd11a499f5f180dd420
BLAKE2b-256 113c29656c8a0e03a2cd97860e4a94a84754b8eb724641c9ab693bf44a0f6cde

See more details on using hashes here.

Provenance

The following attestation bundles were made for trapi_cli-0.1.0.tar.gz:

Publisher: publish.yml on dbolser/trapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trapi_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trapi_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trapi_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60ce72d59332a021c634c7bbdd12f437a822fcd9f36427809417b282f7109e93
MD5 4d098c0bb31310e4d18f2ab1c3f67373
BLAKE2b-256 9f4f1def20b169aa6ce4f3bbafd07bcc6f023e892e9f2ebab4c83412915bc92f

See more details on using hashes here.

Provenance

The following attestation bundles were made for trapi_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dbolser/trapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page