A Python command-line interface for managing Trello boards, cards, labels, and comments.
- List all boards in your workspace
- Create cards with descriptions, labels, and comments
- Add labels and comments to existing cards
- View detailed board information (lists, labels, cards)
- Interactive prompts for user-friendly operation
- Rich terminal formatting with colors and tables
-
Clone the repository:
git clone <repository-url> cd trello-cli
-
Install dependencies:
pip install -r requirements.txt
-
Get Trello API credentials:
- API Key: https://trello.com/app-key
- Token:
https://trello.com/1/authorize?expiration=never&scope=read,write&response_type=token&name=TrelloCLI&key=YOUR_API_KEY
Set environment variables (optional):
export TRELLO_API_KEY="your_api_key_here"
export TRELLO_TOKEN="your_token_here"If not set, you'll be prompted when running commands.
python main.py [COMMAND] [OPTIONS]List workspace boards:
python main.py workspace
python main.py workspace --verbose # Show IDsCreate a card:
python main.py card create
# Interactive prompts for all fields
# Or with flags:
python main.py card create --board "My Board" --list "To Do" --title "New Task" --labels "red blue"Add to existing card:
python main.py card add --board "My Board" --card "Task Name" --comment "Update" --label "green"View board info:
python main.py board info --board "My Board"Create a bug report:
python main.py card create \
--board "Development" \
--list "Backlog" \
--title "Fix login issue" \
--labels "red" \
--comment "Urgent fix needed"python -m unittest test_trello_cli.py -vNote: Integration tests require valid Trello credentials.
- Migrate to Python Poetry for dependency management
- Implement card filtering and search functionality
- Add bulk operations for multiple cards
- Create configuration file support for default board/list
- Add export functionality (JSON, CSV)
- Typer Tutorial - CLI framework documentation
- Typer GitHub Issue #530 - Handling empty prompts as None
- Python CLI Tutorial - YouTube tutorial
- Trello REST API Documentation - Trello API reference