Back to Composio

CLI `composio manage toolkits search` Test

ts/e2e-tests/cli/toolkits/search/README.md

0.11.1752 B
Original Source

CLI composio manage toolkits search Test

Verifies that composio manage toolkits search <query> returns matching toolkits as JSON in piped mode, respects --limit, supports stdout redirection, and handles queries with no results.

What It Tests

TestDescription
Known querysearch gmail returns JSON array with "gmail" as first result
With limitsearch gmail --limit 1 returns exactly 1 element
Stdout redirectionsearch gmail --limit 1 > out.json captures JSON in the file
No resultssearch xyznonexistent_abc_12345 returns empty stdout

Requirements

  • COMPOSIO_USER_API_KEY (required) — Composio user API key passed to the container

Running

bash
pnpm test:e2e:cli