Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 33 lines 923 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runAuthConfigsList } from './auth-configs.list.handler';
3
4 const toolkits = Flag.String('toolkits').pipe(
5 Flag.withDescription('Filter by toolkit slugs, comma-separated (e.g. "gmail" or "gmail,slack")'),
6 Flag.optional
7 );
8
9 const query = Flag.String('query').pipe(
10 Flag.withDescription('Search by auth config name'),
11 Flag.optional
12 );
13
14 const limit = Flag.Int('limit').pipe(
15 Flag.withDefault(30),
16 Flag.withDescription('Number of results per page (1-1000)')
17 );
18
19 /**
20 * List auth configs with optional filters.
21 *
22 * @example
23 * ```bash
24 * composio dev auth-configs list
25 * composio dev auth-configs list --toolkits "gmail"
26 * composio dev auth-configs list --query "my config" --limit 10
27 * ```
28 */
29 export const authConfigsCmd$List = Command.make(
30 'list',
31 { toolkits, query, limit },
32 runAuthConfigsList
33 ).pipe(Command.withDescription('List auth configs.'));