The spring command line tool defines an init command that allows you to create a project using Spring Initializr.
spring
init
Check the documentation for more details.