@sivasothy-tharsi/create-springboot-cli
v1.0.1
Published
CLI tool to generate Spring Boot projects
Maintainers
Readme
create-springboot-app
CLI tool to quickly generate a Spring Boot project with a ready-to-use folder structure, sample entity, repository, service, and controller. It can also automatically start the Spring Boot application.
Features
- Generates a standard Spring Boot folder structure:
controller,service,repository,model,configresourcesforstatic,templates,application.propertiestestfolder with a sample test
- Creates sample files:
SampleEntity.java(entity)SampleRepository.java(JPA repository)SampleService.java(service)SampleController.java(REST controller)
- Generates
pom.xmlwith necessary dependencies - Automatically runs
mvn spring-boot:runafter generation - Works on Windows, Linux, and macOS
Installation
Globally via npm
npm install -g @sivasothy-tharsi/create-springboot-cliUsing npx (no global install required)
npx @sivasothy-tharsi/create-springboot-cli myprojectCreates a folder myawesomeapp in the current directory
Generates all folders and sample files
Automatically starts the Spring Boot application
Project Structure After Generation
myawesomeapp/
├── src/
│ ├── main/java/com/myawesomeapp/
│ │ ├── controller/SampleController.java
│ │ ├── service/SampleService.java
│ │ ├── repository/SampleRepository.java
│ │ ├── model/SampleEntity.java
│ │ └── MyawesomeappApplication.java
│ └── resources/
│ ├── static/
│ ├── templates/
│ └── application.properties
├── src/test/java/com/myawesomeapp/
│ └── MyawesomeappApplicationTests.java
└── pom.xmlRequirements
- Java JDK 17 or later
- Maven installed and in PATH (
mvn -v) - Node.js (v14+) for the CLI
License
MIT License
© 2025 Sivasothy Tharsi
