agentcore_cli.cli
agentcore_cli.cli
¶
AgentCore Platform CLI - Main entry point.
A production-ready CLI for deploying and managing AI agents on AWS Bedrock AgentCore Runtime. Built with environment-first architecture, robust CloudFormation automation, and sophisticated configuration management.
cli(ctx, config=None, verbose=False, quiet=False)
¶
🚀 AgentCore Platform CLI - Deploy and manage AI agents on AWS Bedrock AgentCore Runtime
ARCHITECTURE HIGHLIGHTS: • Environment-First Design: Clean dev/staging/prod separation • Container-Native: Docker build and ECR integration • Infrastructure as Code: CloudFormation with robust polling • Configuration Sync: Sophisticated drift detection with DeepDiff • Security-First: Integrated Cognito auth and IAM management
QUICK START: • Initialize project: agentcore-cli init • Create agent: agentcore-cli agent create my-bot --dockerfile ./Dockerfile • Invoke agent: agentcore-cli agent invoke my-bot --prompt "Hello!" • Switch environment: agentcore-cli env use prod • Sync configuration: agentcore-cli config sync --push
COMMAND GROUPS: • init Interactive setup wizard • agent Agent lifecycle management (create, deploy, invoke, delete) • env Environment management (dev, staging, prod) • container Docker build and push operations • config Configuration and cloud sync management • resources AWS resource management (ECR, IAM, Cognito)
Use 'agentcore-cli
Source code in agentcore_cli/cli.py
deploy_shortcut(name, dockerfile='Dockerfile')
¶
Quick deploy shortcut (hidden - use 'agent create' instead).
Source code in agentcore_cli/cli.py
handle_exception(exc_type, exc_value, exc_traceback)
¶
Global exception handler for better error messages.
Source code in agentcore_cli/cli.py
invoke_shortcut(name, prompt=None)
¶
Quick invoke shortcut (hidden - use 'agent invoke' instead).
Source code in agentcore_cli/cli.py
print_banner()
¶
print_version(ctx, _, value)
¶
Print version information and exit.
Source code in agentcore_cli/cli.py
register_commands()
¶
Register all command groups with the main CLI.