Command-line tool for managing Trello boards, lists, and cards.
This tool supports:
- Auth validation (
me) - Listing boards (
boards) - Syncing and inspecting board state (
sync,overview) - Creating tasks in Inbox (
inboxAdd) - Creating cards in specific lists (
createCard) - Moving cards across lists (
moveCard) - Assigning members to cards (
assign) - Deadline-focused views (
deadlines)
From inside trello/:
npm installTRELLO_KEYTRELLO_TOKEN
Optional defaults:
TRELLO_DEFAULT_BOARD_IDTRELLO_DEFAULT_INBOX_LIST_ID
export TRELLO_KEY="your_trello_key"
export TRELLO_TOKEN="your_trello_token"TRELLO_KEY=your_trello_key
TRELLO_TOKEN=your_trello_token
TRELLO_DEFAULT_BOARD_ID=your_board_id
.envis gitignored in this repo.
- Create/login to your Trello/Atlassian account.
- Generate an API key from Trello developer settings.
- Generate a token with access to the target boards.
- Store them as env vars shown above.
node trello.js --action me
node trello.js --action boards
node trello.js --action sync --boardId <realBoardId>
node trello.js --action overview --boardId <realBoardId>Then create/move/assign cards using real IDs from output.
node trello.js --action inboxAdd --boardId <realBoardId> --name "Follow up"
node trello.js --action createCard --listId <realListId> --name "Draft proposal"
node trello.js --action moveCard --cardId <realCardId> --list "Doing"
node trello.js --action deadlines --boardId <realBoardId> --days 7- Action names must match exactly (e.g.
createCard, notcreate-card). - IDs must be real Trello IDs discovered from
boards/sync/overview. - If you see
invalid value for idList, refresh IDs withsyncand retry.