Using the Initializr with the Spring Boot CLI

You can also use Spring Initializr from the Spring Boot CLI. It offers some commands that can be used to kick-start development. The Spring Boot CLI provides an init command to create a Spring Boot application structure and acts as a client interface to the Spring Initializr. Let's see how to use the init command to create a Spring Boot project as follows:

$ spring init 

Let's see the following output of the init command:

As you can see in the preceding screenshot, a demo.zip file is created and saved to the workspace. If you unzip this project, you'll find a typical project structure with a Maven ...

Get Mastering Spring Boot 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.