Official AWS Amplify Gen 1 CLI for provisioning auth, APIs, storage, functions, hosting, and environments for Amplify apps.
$npm install -g @aws-amplify/cli
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
AWS Amplify CLI is the official Gen 1 command surface for creating and managing Amplify backends backed by CloudFormation. It covers project init, backend category changes, environment sync, codegen, and export workflows for existing Amplify Gen 1 apps.
What It Enables
- Initialize or attach Amplify Gen 1 projects, add or update auth, APIs, storage, functions, hosting, and other backend categories, then push those changes into AWS.
- Pull, list, inspect, import, and switch backend environments so teams can keep local state aligned with deployed Amplify environments.
- Export Amplify-managed resources to a CDK app or regenerate frontend config and GraphQL code artifacts from the backend definition.
Agent Fit
- Many workflows map to explicit shell commands and checked-in project files, and the CLI has real headless paths for CI-style init and category operations.
- Structured output is limited:
amplify env list/get --jsonexists, but most commands return human-readable tables, status text, or filesystem side effects rather than rich JSON. - Best for agents already operating inside an existing Amplify Gen 1 repo with credentials in place; greenfield setup is more brittle because prompts, confirmations, and service-specific wizards still dominate much of the UX.
Caveats
- This repo and CLI are for Amplify Gen 1; the README now recommends Amplify Gen 2 for new projects.
- AWS credentials and some setup flows still rely on interactive configuration unless you supply the full headless arguments.