Skip to content

cards

Manage Trello cards — view, create, update, delete, and manage comments, attachments, members, and labels.

Get Card

bash
trello cards get <id> [options]

Options

OptionDescription
--jsonOutput as JSON

Examples

bash
# Get card details
trello cards get 60d5ecb2a1b2c30a12345678

# Get card as JSON
trello cards get 60d5ecb2a1b2c30a12345678 --json

Create Card

bash
trello cards create [options]

Options

OptionDescription
-n, --name <name>Card name (required unless --idCardSource is used)
-l, --list <listId>List ID to create the card in (required)
-d, --desc <description>Card description
--due <date>Due date (ISO 8601 format)
--labels <labelIds>Comma-separated label IDs
--members <memberIds>Comma-separated member IDs
--idCardSource <cardId>Source card ID to copy from
--keepFromSource <properties>Comma-separated properties to keep from source (attachments, checklists, comments, due, labels, members, stickers)
--jsonOutput as JSON

Examples

bash
# Create a card
trello cards create -n "Fix login bug" -l 60d5ecb2a1b2c30a12345678

# Create a card with description and due date
trello cards create -n "Release v2.0" -l 60d5ecb2a1b2c30a12345678 \
  -d "Major release with new features" --due 2026-04-01

# Create a card with labels and members
trello cards create -n "Review PR" -l 60d5ecb2a1b2c30a12345678 \
  --labels "labelId1,labelId2" --members "memberId1"

# Copy a card to a list
trello cards create -l 60d5ecb2a1b2c30a12345678 \
  --idCardSource 60d5ecb2a1b2c30a87654321

# Copy a card, keeping checklists and labels, with a new name
trello cards create -n "Copy of task" -l 60d5ecb2a1b2c30a12345678 \
  --idCardSource 60d5ecb2a1b2c30a87654321 \
  --keepFromSource "checklists,labels,members"

Update Card

bash
trello cards update <id> [options]

Options

OptionDescription
-n, --name <name>New card name
-d, --desc <description>New card description
--closeArchive the card
--reopenUnarchive the card
-l, --list <listId>Move card to a different list
--due <date>Set due date (ISO 8601 format)
--doneMark due date as complete
--make-templateConvert card to a template
--remove-templateConvert template back to a regular card
--jsonOutput as JSON

Examples

bash
# Rename a card
trello cards update 60d5ecb2a1b2c30a12345678 -n "Updated title"

# Move a card to another list
trello cards update 60d5ecb2a1b2c30a12345678 -l 60d5ecb2a1b2c3

# Set a due date and mark complete
trello cards update 60d5ecb2a1b2c30a12345678 --due 2026-04-01 --done

# Archive a card
trello cards update 60d5ecb2a1b2c30a12345678 --close

# Make a card a template
trello cards update 60d5ecb2a1b2c30a12345678 --make-template

# Convert template back to regular card
trello cards update 60d5ecb2a1b2c30a12345678 --remove-template

Delete Card

bash
trello cards delete <id> [options]

WARNING

This action is permanent and cannot be undone. The command requires --yes to confirm deletion.

Options

OptionDescription
--yesSkip confirmation and delete immediately
--jsonOutput as JSON

Examples

bash
# Delete a card (shows confirmation warning)
trello cards delete 60d5ecb2a1b2c30a12345678

# Delete a card without confirmation
trello cards delete 60d5ecb2a1b2c30a12345678 --yes

Card Comments

List Comments

bash
trello cards comments <cardId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards comments 60d5ecb2a1b2c30a12345678

Add Comment

bash
trello cards add-comment <cardId> [options]
OptionDescription
-t, --text <text>Comment text (required)
--jsonOutput as JSON
bash
trello cards add-comment 60d5ecb2a1b2c30a12345678 -t "Looks good to me!"

Update Comment

bash
trello cards update-comment <cardId> <commentId> [options]
OptionDescription
-t, --text <text>New comment text (required)
--jsonOutput as JSON
bash
trello cards update-comment 60d5ecb2a1b2c3 60d5ecb2a1b2c4 -t "Updated comment"

Delete Comment

bash
trello cards delete-comment <cardId> <commentId> [options]
OptionDescription
--yesSkip confirmation
--jsonOutput as JSON
bash
trello cards delete-comment 60d5ecb2a1b2c3 60d5ecb2a1b2c4 --yes

Card Attachments

List Attachments

bash
trello cards attachments <cardId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards attachments 60d5ecb2a1b2c30a12345678

Add Attachment

bash
trello cards add-attachment <cardId> [options]
OptionDescription
--url <url>URL to attach (required)
-n, --name <name>Attachment name
--set-coverSet as card cover
--jsonOutput as JSON
bash
# Attach a URL
trello cards add-attachment 60d5ecb2a1b2c30a12345678 --url "https://example.com/doc.pdf"

# Attach with a custom name and set as cover
trello cards add-attachment 60d5ecb2a1b2c30a12345678 --url "https://example.com/img.png" -n "Screenshot" --set-cover

Delete Attachment

bash
trello cards delete-attachment <cardId> <attachmentId> [options]
OptionDescription
--yesSkip confirmation
--jsonOutput as JSON
bash
trello cards delete-attachment 60d5ecb2a1b2c3 60d5ecb2a1b2c4 --yes

Card Members

List Members

bash
trello cards members <cardId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards members 60d5ecb2a1b2c30a12345678

Add Member

bash
trello cards add-member <cardId> <memberId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards add-member 60d5ecb2a1b2c3 60d5ecb2a1b2c4

Remove Member

bash
trello cards remove-member <cardId> <memberId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards remove-member 60d5ecb2a1b2c3 60d5ecb2a1b2c4

Card Labels

Add Label

bash
trello cards add-label <cardId> <labelId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards add-label 60d5ecb2a1b2c3 60d5ecb2a1b2c4

Remove Label

bash
trello cards remove-label <cardId> <labelId> [options]
OptionDescription
--jsonOutput as JSON
bash
trello cards remove-label 60d5ecb2a1b2c3 60d5ecb2a1b2c4

Released under the MIT License.