A CLI for bootstrapping AWS CDK applications with focus on best practices and developer experience.
- Interactive Setup: Guides you through project creation with a series of questions.
- Template Selection: Choose from predefined templates and languages to quickly start your project.
- Placeholder Replacement: Automatically populates project-specific values (e.g., service name, AWS account, region) into your template files.
- Git Initialization: Initializes a Git repository for your new project.
- Dependency Installation: Automatically installs project dependencies using
npm
.
To create a new CDK project, navigate to your desired directory and run:
npx @andersonfpcorrea/cdk-init <project-name>
If you omit <project-name>
, the CLI will prompt you for it.
npx @andersonfpcorrea/cdk-init my-new-service
This will guide you through some questions to configure your CDK application.
You can also specify a template and language directly using the --template
and --language
flags:
npx @andersonfpcorrea/cdk-init my-new-service --template default --language typescript
Currently, the CLI supports the following templates:
- Language:
typescript
- Template:
default
: An opinionated starter template for small to medium AWS CDK projects.
- Template:
To set up the development environment for cdk-init
:
-
Clone the repository:
git clone https://github.com/andersonfpcorrea/cdk-init.git cd cdk-init
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Link the CLI for local testing:
npm link
Now you can run
cdk-init
commands from any directory on your system. -
Run tests:
npm run test
Contributions are welcome. Feel free to write an issue or submit a pull request.
ISC License