A command-line Bash script to initialize Spring-Boot projects right from your terminal.
Read blog post here: https://schmeeky.pages.dev/posts/spring-cli
I needed a handy tool to generate Spring Boot projects from my terminal and I couldn't find any. So I wrote one myself :D
This script collects all relevant information required to initialize a Spring Boot project and makes an api call to start.spring.io using httpie to download the zip file containing the project.
- Httpie
$ npm install -g httpie
$ git clone https://github.com/schmeekygeek/spring-cli
$ cd spring-cli/
$ chmod +x spring-cli
$ sudo cp spring-cli ~/.local/bin/
To uninstall, simply remove
spring-cli
from/usr/bin/
$ sudo rm ~/.local/bin/spring-cli
$ spring-cli
spring-cli: A command-line tool to generate spring projects right from your terminal
: Usage
spring-cli {option}
: Options
--help Print this help message and exit
--list-dependencies List all dependencies
--create-project Create a project interactively
- I could've gone with cURL as the http client, but I felt like using httpie. You can edit the script however you like to fit your needs.
All sorts of pull requests to improve the script are welcome :D
This product is licensed under the GNU General Public License V3