Skip to content

feat(card): add --id flag to card:activity command - #243

Open
neolivz wants to merge 1 commit into
mheap:mainfrom
neolivz:card-activity-id-flag
Open

feat(card): add --id flag to card:activity command#243
neolivz wants to merge 1 commit into
mheap:mainfrom
neolivz:card-activity-id-flag

Conversation

@neolivz

@neolivz neolivz commented Aug 31, 2026

Copy link
Copy Markdown

Summary

Allow card:activity to accept a card ID directly via --id, bypassing the --board/--list/--card name resolution chain. This is consistent with how card:get-by-id already works.

Motivation

When using trello-cli from automation tools (MCP servers, scripts), the card ID is often already known. Currently card:activity requires --board, --list, and --card flags which rely on the local name cache — this fails when the cache can't resolve a board name, even though the underlying API (getCardActions) only needs the card ID.

Changes

  • card:activity now accepts --id <cardId> as an alternative to --board/--list/--card
  • --id is mutually exclusive with --board/--list/--card (via oclif exclusive)
  • --board, --list, --card are no longer required — they remain fully functional when provided
  • Added tests for --id usage

Example

# Before (still works)
trello card:activity --board MyBoard --list ToDo --card MyCard

# New
trello card:activity --id 6a7948b35f39ca1218b6c441
trello card:activity --id 6a7948b35f39ca1218b6c441 --filter commentCard

Allow card:activity to accept a card ID directly via --id, bypassing
the board/list/card name resolution. This is consistent with how
card:get-by-id works and makes it easier to use from automation tools
that already have the card ID.

The --id flag is mutually exclusive with --board/--list/--card.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant