====== SpringBoot CLI ======
* [[https://docs.spring.io/spring-boot/docs/current/reference/html/cli-using-the-cli.html|64. Using the CLI]]
===== Install with sdkman =====
* [[https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-installing-spring-boot.html|10. Installing Spring Boot]]
sdk install springboot
# 자동완성지원
. ~/.sdkman/candidates/springboot/current/shell-completion/bash/spring
===== Install with Windows scoop =====
* [[windows:scoop|Scoop]]
scoop bucket add extras
scoop install springboot
''~/scoop/apps/springboot/current/bin/spring''
===== init =====
* 의존성 등 보여주기
spring init --list
spring help init # 도움말
* 기본 생성 예
# myproject 라는 디렉토리에 --dependencies 에 따라 의존성 구성해서 프로젝트 생성
spring init -b 2.3.1 -g kr.pe.kwonnam -a springboottest --build gradle \
-l java -j 11 \
--dependencies=web,jdbc,data-jpa,devtools,jooq,lombok,h2 \
--packaging=jar \
-x myproject
* Windows 에서는 ''%%--%%dependencies="web,jdbc,..."'' 형태로 특수문자가 들어가는 옵션에는 따옴표가 필요하다.