cli.md
| source_path | references/bedrock-agents-to-agentcore-harness/cli.md |
|---|---|
| source_sha256 | 3082bebebf863d31691a92a4aa0a24c8e27fcf6614c901c6da262e65e9f711e9 |
| source_url | https://github.com/aws/agent-toolkit-for-aws/blob/903433d67cc4eeab334355620373f33a0c162dd4/skills/core-skills/amazon-bedrock/references/bedrock-agents-to-agentcore-harness/cli.md |
| supporting_skill_id | 40201 |
| upstream_revision | 903433d67cc4eeab334355620373f33a0c162dd4 |
AgentCore CLI
The migration tool is the AgentCore CLI, package @aws/agentcore — use the latest version. Its command/flag surface shifts between releases, so verify it live rather than trusting a hardcoded flag table.
The AgentCore CLI (@aws/agentcore) is not the same as the bedrock-agentcore-starter-toolkit. The starter toolkit is deprecated and not recommended — do not use it or its commands for this migration. Everything here uses @aws/agentcore.
Authoritative, always-current sources
- Installed surface:
agentcore --help, thenagentcore <command> --helpfor each command about to be used. - Per-project schema the CLI ships:
https://schema.agentcore.aws.dev/v1/agentcore.jsoninside any scaffolded project (authoritative shape foragentcore.json, harness, gateway, target, tool-schema). Read before hand-editing config. - Published / latest version:
npm view @aws/agentcore version. - Package page: https://www.npmjs.com/package/@aws/agentcore
Phase 0 checks
agentcore --version
npm view @aws/agentcore version # newer release available?
python3 -c "import boto3; print(boto3.__version__)" # discovery path probe (see discovery.md)
Then probe the commands the migration actually calls and confirm the flags/values each needs are present:
agentcore create --help
agentcore add gateway --help
agentcore add gateway-target --help
agentcore add harness --help
agentcore add tool --help
agentcore deploy --help
If a required flag is absent, stop — don't generate commands against a surface that no longer exists. Update the CLI (npm install -g @aws/agentcore@latest) and re-probe, or update this skill if the references assume a flag the CLI renamed.
Never reverse-engineer the CLI bundle
Do not read the CLI's minified source (node_modules/@aws/agentcore/dist/**) — internal names and wizard-only code paths produce confident-but-wrong conclusions. If --help, .llm-context, the hosted schema, and these references don't answer it, stop and ask the user.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.