@spacebananelol/atlassian-trello
v1.0.0
Published
Production-ready Trello CLI
Maintainers
Readme
trello-cli
A production-ready CLI for Trello, built with TypeScript and Node.js.
Setup
Requirements: Node.js 18+
npm install
npm run build
npm link # makes `trello` available globallyAuthenticate
trello loginYou'll be prompted for your API key. The CLI will print a URL — open it to generate a token, paste it back, and credentials are saved securely in your OS keychain.
To get your API key: https://trello.com/power-ups/admin
Log out
trello logoutCommands
Boards
trello boards # List all open boards
trello boards search <query> # Filter boards by nameLists
trello lists <boardId> # List all lists on a boardCards
trello cards <listId> # List cards in a list
trello card <cardId> # Show card detail (name, desc, due, labels)Create / Modify Cards
trello add card <listId> <name> # Create a card
trello add card <listId> <name> --desc "..." # With description
trello add card <listId> <name> --due 2024-12-31 # With due date
trello move <cardId> <listId> # Move card to another list
trello archive <cardId> # Archive a cardFlags
All commands support --json for machine-readable output:
trello boards --json
trello cards <listId> --jsonDevelopment
npm run dev # tsx watch mode (hot reload)
npm run build # rimraf dist && tscProject Structure
src/
index.ts — CLI entry point (commander setup)
api.ts — Trello REST API calls
auth.ts — keytar credential management
output.ts — table/JSON rendering
types.ts — Board, List, Card interfaces