Skip to main content

A command-line interface for Trello

Project description

trelloctl

PyPI version Python package

A command-line interface for Trello, written in Python.

Requirements

  • Python 3.11+

Installation

Simply run it via uv:

uvx trelloctl

Or install via pipx. Or manually via pip:

pip install trelloctl

Usage

Authentication

Before using the CLI, you need to authenticate with Trello:

  1. Go to the Trello Power-Up Admin Portal
  2. Create a new Power-Up (required even for personal use)
  3. Copy your API key from the Power-Up's "API Key" section
  4. Run the login command:
trelloctl auth login

The CLI will guide you through entering your API key and generating a token. Credentials are stored securely in your system keychain.

To check your authentication status:

trelloctl auth status

To remove stored credentials:

trelloctl auth logout

Basic Command Examples

# List all boards
trelloctl board list

# List lists on a board (by name or ID)
trelloctl list list "My Board"
trelloctl list list Development

# List cards in a list
trelloctl list cards "To Do" --board Development

# Show board details
trelloctl board show Development

# Create a card
trelloctl card create "To Do" --board Development --name "New task"

# Move a card to another list
trelloctl card move <card_id> Done --board Development

# Output as JSON
trelloctl --format json board list

# Output as CSV
trelloctl --format csv board list

Names support partial matching (case-insensitive). If multiple items match, you'll be prompted to be more specific.

Command Reference

Global Options

Option Description
--format, -f Output format: table (default), json, csv, plain
--profile, -p Configuration profile to use (default: default)
--version Show version and exit
--help Show help and exit

trelloctl auth

Authentication commands.

Command Description
auth login Set up authentication with Trello
auth status Check authentication status
auth logout Remove stored credentials

trelloctl board

Board management commands.

Command Description
board list [--filter] List all accessible boards
board show <board> Show details of a board
board create --name <name> Create a new board
board close <board> Close (archive) a board
board delete <board> Delete a board permanently
board labels <board> List labels on a board
board members <board> List members of a board

trelloctl list

List management commands.

Command Description
list list <board> List all lists on a board
list show <list> --board <board> Show details of a list
list create <board> --name <name> Create a new list
list archive <list> --board <board> Archive a list
list cards <list> --board <board> List all cards in a list

trelloctl card

Card management commands.

Command Description
card show <card_id> Show details of a card
card create <list> --board <board> --name <name> Create a new card
card move <card_id> <target_list> --board <board> Move a card to another list
card update <card_id> [--name] [--description] [--due] Update a card
card archive <card_id> Archive a card
card delete <card_id> Delete a card permanently
card assign <card_id> <member_id> Assign a member to a card
card unassign <card_id> <member_id> Remove a member from a card
card comment <card_id> <text> Add a comment to a card
card comments <card_id> List comments on a card

trelloctl checklist

Checklist management commands.

Command Description
checklist list <card_id> List all checklists and items on a card
checklist create <card_id> --name <name> Create a checklist on a card
checklist delete <checklist_id> Delete a checklist
checklist add-item <checklist_id> --name <name> [--checked] Add an item to a checklist
checklist check <card_id> <item_id> [--uncheck] Mark a checklist item as complete or incomplete
checklist delete-item <checklist_id> <item_id> Delete a checklist item

Multiple Profiles

You can use multiple Trello accounts by specifying a profile:

# Set up a work profile
TRELLOCTL_PROFILE=work trelloctl auth login

# Use the work profile
trelloctl --profile work board list

License

MIT License

Copyright (c) 2025 Werner Robitza

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

trelloctl-0.2.2.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

trelloctl-0.2.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file trelloctl-0.2.2.tar.gz.

File metadata

  • Download URL: trelloctl-0.2.2.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for trelloctl-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2a05f294813a203c60af7b13953e5f7f432ae439ca2ef67c27a0377ef2ec70e5
MD5 4b3e9fb16491f322646bfd55408eccd0
BLAKE2b-256 e418fda8c9bc2af8d4983b51c52dc22cabff6b53e815091d8b195bcc5ee09cfc

See more details on using hashes here.

File details

Details for the file trelloctl-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: trelloctl-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for trelloctl-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13947bf22d33f1c77122003d3c44f9158679e00d42f398da702756e79e9a5626
MD5 f4961430a49e0f465414db369a001f24
BLAKE2b-256 854cdbba15612c966e0943e616061c80a340e26da26f732a1ce8c2ade4a06999

See more details on using hashes here.

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