create-stackform
v1.0.0
Published
Create Stackform-ready projects with a single command
Downloads
20
Maintainers
Readme
Quick Start
npx create-stackform@latest my-projectThat's it. Pick a template, and you'll have a production-ready project configured for AWS deployment.
Works with every package manager:
npx create-stackform@latest my-project # npm (recommended)
yarn create stackform my-project # yarn
pnpm create stackform my-project # pnpm
bun create stackform my-project # bunTemplates
Next.js
Full-stack web application with App Router, Tailwind CSS, and standalone output — ready for serverless deployment.
npx create-stackform@latest my-app --template nextjsmy-app/
├── src/app/ # App Router pages & API routes
├── public/ # Static assets
├── stackform.json # Deployment config
├── next.config.ts # standalone output enabled
└── package.jsonCDK (TypeScript)
AWS infrastructure as code with a ready-to-deploy stack.
npx create-stackform@latest my-infra --template cdkmy-infra/
├── bin/app.ts # CDK app entry point
├── lib/app-stack.ts # Your infrastructure
├── stackform.json # Deployment config
├── cdk.json
└── package.jsonDocker
Containerized application with a production-optimized multi-stage Dockerfile, health checks, and ECS Fargate compatibility.
npx create-stackform@latest my-service --template dockermy-service/
├── src/index.ts # Fastify server
├── Dockerfile # Multi-stage, production-ready
├── docker-compose.yml # Local development
├── stackform.json # Deployment config
└── package.jsonTerraform
HashiCorp Terraform with AWS provider pre-configured and best-practice file structure.
npx create-stackform@latest my-infra --template terraformmy-infra/
├── main.tf # Resources
├── variables.tf # Input variables
├── outputs.tf # Outputs
├── providers.tf # AWS provider config
└── stackform.json # Deployment configExamples
Ready-to-use example projects are available in the examples/ directory:
| Example | Description |
|---------|-------------|
| examples/nextjs | Next.js 16 with App Router & Tailwind CSS |
| examples/cdk | AWS CDK TypeScript stack |
| examples/docker | Containerized Fastify service |
| examples/terraform | Terraform AWS infrastructure |
Each example was generated with create-stackform and is ready to deploy as-is.
Options
Usage: create-stackform [options] [project-name]
Arguments:
project-name Name of the project to create
Options:
-V, --version Print version
-t, --template <type> Project template (nextjs, cdk, docker, terraform)
--no-typescript Scaffold without TypeScript
--no-git Skip git repository initialization
--no-install Skip dependency installation
--package-manager <pm> Package manager (npm, yarn, pnpm, bun)
-h, --help Show helpNon-Interactive (CI/Scripting)
npx create-stackform@latest my-project \
--template nextjs \
--no-git \
--no-installstackform.json
Every project includes a stackform.json that tells Stackform how to build and deploy:
{
"name": "my-project",
"type": "nextjs",
"version": "1.0.0",
"deploy": {
"buildCommand": "npm run build",
"outputDir": ".next"
}
}Zero-config deployments — connect your repo and click deploy.
Deploy to AWS
Your infrastructure is live. Stackform handles provisioning, builds, and deployments so you can focus on code.
Development
git clone https://github.com/stackform-io/create-stackform.git
cd create-stackform
npm install
npm run build
node dist/index.js my-test-projectLicense
Copyright © 2025 Stackform, Inc.
This project is licensed under the Business Source License 1.1 (BSL 1.1).
- Allowed: Use, copy, modify, and redistribute for any purpose — personal projects, commercial applications, internal tooling.
- Not allowed: Using this software to offer a commercial hosted deployment platform that competes with Stackform.
- Change date: Four years after each release, the code automatically converts to the Apache 2.0 license.
See the LICENSE file for the full text.
