KosmoKrator

productivity

Trello CLI for AI Agents

Use the Trello CLI from KosmoKrator to call Trello tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Trello CLI Setup

Trello can be configured headlessly with `kosmokrator integrations:configure trello`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure trello --set access_token="$TRELLO_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor trello --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token TRELLO_ACCESS_TOKEN Secret secret yes Access Token
url TRELLO_URL URL url no API Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call trello.trello_list_boards '{"filter":"example_filter","fields":"example_fields","limit":1}' --json
Provider shortcut
kosmo integrations:trello trello_list_boards '{"filter":"example_filter","fields":"example_fields","limit":1}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs trello --json
kosmo integrations:docs trello.trello_list_boards --json
kosmo integrations:schema trello.trello_list_boards --json
kosmo integrations:search "Trello" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

trello.trello_list_boards

List all boards for the authenticated Trello member. Supports filtering by status and field selection.

Read read
Parameters
filter, fields, limit
Generic call
kosmo integrations:call trello.trello_list_boards '{"filter":"example_filter","fields":"example_fields","limit":1}' --json
Shortcut
kosmo integrations:trello trello_list_boards '{"filter":"example_filter","fields":"example_fields","limit":1}' --json

trello.trello_get_board

Get detailed information about a Trello board by ID.

Read read
Parameters
id
Generic call
kosmo integrations:call trello.trello_get_board '{"id":"example_id"}' --json
Shortcut
kosmo integrations:trello trello_get_board '{"id":"example_id"}' --json

trello.trello_list_lists

List all lists on a Trello board.

Read read
Parameters
board_id
Generic call
kosmo integrations:call trello.trello_list_lists '{"board_id":"example_board_id"}' --json
Shortcut
kosmo integrations:trello trello_list_lists '{"board_id":"example_board_id"}' --json

trello.trello_get_list

Get detailed information about a Trello list by ID.

Read read
Parameters
id
Generic call
kosmo integrations:call trello.trello_get_list '{"id":"example_id"}' --json
Shortcut
kosmo integrations:trello trello_get_list '{"id":"example_id"}' --json

trello.trello_list_cards

List all cards in a Trello list. Supports limit and before cursor for pagination.

Read read
Parameters
list_id, limit, before
Generic call
kosmo integrations:call trello.trello_list_cards '{"list_id":"example_list_id","limit":1,"before":"example_before"}' --json
Shortcut
kosmo integrations:trello trello_list_cards '{"list_id":"example_list_id","limit":1,"before":"example_before"}' --json

trello.trello_create_card

Create a new card on a Trello list.

Write write
Parameters
name, id_list, desc, id_labels, id_members, due, pos
Generic call
kosmo integrations:call trello.trello_create_card '{"name":"example_name","id_list":"example_id_list","desc":"example_desc","id_labels":"example_id_labels","id_members":"example_id_members","due":"example_due","pos":"example_pos"}' --json
Shortcut
kosmo integrations:trello trello_create_card '{"name":"example_name","id_list":"example_id_list","desc":"example_desc","id_labels":"example_id_labels","id_members":"example_id_members","due":"example_due","pos":"example_pos"}' --json

trello.trello_get_current_user

Get the profile of the currently authenticated Trello user. Useful for verifying credentials and displaying account information.

Read read
Parameters
none
Generic call
kosmo integrations:call trello.trello_get_current_user '{}' --json
Shortcut
kosmo integrations:trello trello_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

trello.trello_list_boards 3 parameters
Schema command
kosmo integrations:schema trello.trello_list_boards --json
ParameterTypeRequiredDescription
filter string no Filter: "all", "closed", "members", "open", "organization", "public" (default: "all").
fields string no Comma-separated board fields to return (default: "all").
limit integer no Max number of boards to return (1–1000).
trello.trello_get_board 1 parameters
Schema command
kosmo integrations:schema trello.trello_get_board --json
ParameterTypeRequiredDescription
id string yes The board ID.
trello.trello_list_lists 1 parameters
Schema command
kosmo integrations:schema trello.trello_list_lists --json
ParameterTypeRequiredDescription
board_id string yes The board ID to list lists from.
trello.trello_get_list 1 parameters
Schema command
kosmo integrations:schema trello.trello_get_list --json
ParameterTypeRequiredDescription
id string yes The list ID.
trello.trello_list_cards 3 parameters
Schema command
kosmo integrations:schema trello.trello_list_cards --json
ParameterTypeRequiredDescription
list_id string yes The list ID.
limit integer no Max number of cards to return (1–1000).
before string no Card ID to fetch cards before (for pagination).
trello.trello_create_card 7 parameters
Schema command
kosmo integrations:schema trello.trello_create_card --json
ParameterTypeRequiredDescription
name string yes Name for the card.
id_list string yes ID of the list to add the card to.
desc string no Description (supports Markdown).
id_labels array no Array of label IDs to add.
id_members array no Array of member IDs to assign.
due string no Due date in ISO 8601 format.
pos string no Position: "top", "bottom", or a positive number.
trello.trello_get_current_user 0 parameters
Schema command
kosmo integrations:schema trello.trello_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.