To install Spring Boot CLI, you need to follow the below steps:
- Download and install the latest version of Java Development Kit (JDK).
- Download the Spring Boot CLI installation file from the official Spring website or use the following command to download the latest version:
wget https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.4.7/spring-boot-cli-2.4.7-bin.tar.gz
- Extract the downloaded file using the following command:
tar -xvzf spring-boot-cli-2.4.7-bin.tar.gz
- Set the
SPRING_HOME
environment variable to the installation directory. - Add the
bin
directory of the installation directory to thePATH
environment variable. - Verify the installation by running the following command:
spring --version
This should display the version of Spring Boot CLI installed on your system.