Migrate an existing project
Use agentcore migrate to upgrade an AgentCore CLI v0 project in place.
1. Prepare the project
Install AgentCore CLI v1. See Install the AgentCore CLI.
Before you migrate:
-
Install Git and make sure the project is in a Git working tree.
-
Commit the project files, including
agentcore/agentcore.json. -
Commit or stash any pending changes. The project directory must have no uncommitted changes, including untracked files.
If the CLI reports that the project’s CDK dependencies are older than v0.24.2, run:
npx @aws/agentcore@0 deploy
2. Run the migration
Run:
agentcore migrate