diff --git a/src/cli/tui/copy.ts b/src/cli/tui/copy.ts index 507365da3..6f3ea84d8 100644 --- a/src/cli/tui/copy.ts +++ b/src/cli/tui/copy.ts @@ -43,3 +43,12 @@ export const COMMAND_DESCRIPTIONS = { update: 'Check for and install CLI updates', validate: 'Validate agentcore/ config files.', } as const; + +/** + * Example commands shown in --help output. + */ +export const HELP_EXAMPLES = [ + { command: 'agentcore create', description: 'Create a new project with guided setup' }, + { command: 'agentcore dev', description: 'Start local development server' }, + { command: 'agentcore deploy --target default', description: 'Deploy to AWS using default target' }, +] as const; diff --git a/src/cli/tui/screens/home/CommandListScreen.tsx b/src/cli/tui/screens/home/CommandListScreen.tsx index f2d2f1498..d38a173ac 100644 --- a/src/cli/tui/screens/home/CommandListScreen.tsx +++ b/src/cli/tui/screens/home/CommandListScreen.tsx @@ -1,4 +1,5 @@ import { buildLogo, useLayout } from '../../context'; +import { HELP_EXAMPLES } from '../../copy'; import type { CommandMeta } from '../../utils/commands'; import { Box, Text, useApp } from 'ink'; import React, { useEffect } from 'react'; @@ -56,6 +57,22 @@ export function CommandListScreen({ commands }: CommandListScreenProps) { ); })} + + Examples: + + {HELP_EXAMPLES.map(example => ( + + + $ + {example.command} + + + + {example.description} + + + ))} + Run agentcore [command] --help for command-specific help Run agentcore (no args) for interactive mode