日本語版: README.ja.md
create-ampless
CLI scaffolding tool for ampless projects.
Pre-release / beta. Breaking changes possible in any minor version until v1.0. Use the
@betatag (the@latesttag won't exist until v1.0).
npx create-ampless@betaThe wizard walks you through:
- Project name
- Site name (used as the default
<title>and OGPsiteName) - Theme — pick from the bundled themes (e.g.
blog) - Plugins —
seo,rss,webhook
Output is a Next.js 16 (App Router) project with the AWS Amplify Gen 2 backend definitions, an admin panel at /admin, public blog at /, the chosen plugins pre-wired in cms.config.ts, and a RUNBOOK.md for operations notes.
Next steps inside the generated project
cd my-project
npm install
npx ampx sandbox # provision AWS dev resources, generates amplify_outputs.json
npm run dev # http://localhost:3000Sign up at /login — the first registered user is automatically promoted to the ampless-admin Cognito group.
One-shot deploy: --deploy
The wizard can also take you all the way from npx to a live Amplify Hosting URL:
npx create-ampless@beta my-site --deployThat extra flag, after scaffolding, runs:
git init+ initial commit- Create a GitHub repo (
gh repo create) and push aws amplify create-applinked to the new repoaws amplify create-branch mainaws amplify start-job --job-type RELEASE- Optional
aws amplify create-domain-associationif you pass--domain
Anything missing on the command line gets asked interactively. For CI-friendly fully-flagged usage:
npx create-ampless@beta my-site --deploy \
--github-owner my-org \
--github-private \
--aws-region us-east-1 \
--domain example.com --subdomain blog \
--skip-confirmIf the apex domain is hosted in Route 53 in the same AWS account, Amplify will auto-create the DNS records once ACM validates. Otherwise the CLI prints the exact CNAMEs to add at your registrar.
Deploy requirements
ghinstalled and authenticated (gh auth login)awsinstalled and configured (aws configure)- A GitHub token with
reposcope (resolved via--github-token→GITHUB_TOKENenv →gh auth token→ interactive prompt)
Requirements
- Node.js >= 22
- AWS account +
aws configurealready set up (sandbox / pipeline-deploy talk to AWS directly)