@devries-cameron20 / composio Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 06:00 UTC

next
ts 21 lines 661 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runConnectionsList } from './connections.list.handler';
3
4 const toolkit = Flag.String('toolkit').pipe(
5 Flag.withDescription('Filter by toolkit slug (e.g. "gmail")'),
6 Flag.optional
7 );
8
9 export const connectionsCmd$List = Command.make('list', { toolkit }, runConnectionsList).pipe(
10 Command.withDescription(
11 'List connections as JSON with each account id and status, plus its alias, word_id, and provider display name when available.'
12 ),
13 Command.withExamples([
14 {
15 command: 'composio connections list',
16 },
17 {
18 command: 'composio connections list --toolkit gmail',
19 },
20 ])
21 );