Migrating from the Bedrock AgentCore Starter Toolkit to the AgentCore CLI
Description
This guide walks you through migrating an existing [Bedrock AgentCore Starter Toolkit](https://github.com/aws/bedrock-agentcore-starter-toolkit) project to the [AgentCore CLI](https://github.com/aws/a
Installation
claude install-skill https://github.com/awslabs/agentcore-samples README
Migrating from the Bedrock AgentCore Starter Toolkit to the AgentCore CLI
This guide walks you through migrating an existing [Bedrock AgentCore Starter Toolkit](https://github.com/aws/bedrock-agentcore-starter-toolkit) project to the [AgentCore CLI](https://github.com/aws/agentcore-cli). The CLI provides a richer feature set including a terminal UI, CDK/CloudFormation-managed infrastructure, evaluations, local development server, and more.
Overview
The AgentCore CLI includes an `agentcore import` command that automates the migration of your Starter Toolkit project. It reads your existing `.bedrock_agentcore.yaml` configuration, imports your deployed AWS resources (agents, memories, credentials) into a new CLI-managed CloudFormation stack, and copies your agent source code into the CLI project structure — all without downtime or resource re-creation.
Prerequisites
- undefined
Step 1: Install the AgentCore CLI
npm install -g @aws/agentcore
If you still have the old Python-based Starter Toolkit CLI installed, uninstall it to avoid command conflicts (both use the `agentcore` command name):
# Uninstall using whichever tool you originally used:
pip uninstall bedrock-agentcore-starter-toolkit # if installed via pip
pipx uninstall bedrock-agentcore-starter-toolkit # if installed via pipx
uv tool uninstall bedrock-agentcore-starter-toolkit # if installed via uv
Step 2: Create a New CLI Project
Create a new AgentCore CLI project that will receive the imported resources:
agentcore create --name my-project
cd my-project
You can also use the interactive wizard by running `agentcore create` without flags.
Step 3: Run the Import Command
From within your new CLI project directory, run the import command pointing to your Starter Toolkit YAML config file:
agentcore import --source /path/to/your/starter-toolkit-project/.bedrock_agentcore.yaml
Command Options
| Option | Description |
|---|---|
--source |
(Required) Path to the .bedrock_agentcore.yaml configuration file |
--target |
Deployment target name (only needed if your CLI project has multiple targets) |
-y, --yes |
Auto-confirm prompts |
What the Import Does
The import command performs a 3-phase migration:
- undefined
Related Agents
Workflow Automate
| You are a workflow automation expert specializing in creating efficient CI/CD pipelines, GitHub Acti... | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community terraform-specialist
| You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state managem... | opus | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community kubernetes-architect
| You are a Kubernetes architect specializing in cloud-native infrastructure, modern GitOps workflows,... | opus | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community gitlab-ci-patterns
| Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment. | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community secrets-management
| Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other... | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community deployment-pipeline-design
| Architecture patterns for multi-stage CI/CD pipelines with approval gates and deployment strategies. | - | [wshobson/agents](https://github.com/wshobson/agents) |
DevOps & Infrastructure community