• Home
  • How to install Spring Boot CLI?

How to install Spring Boot CLI?

To install Spring Boot CLI, you need to follow the below steps:

  1. Download and install the latest version of Java Development Kit (JDK).
  2. 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
  1. Extract the downloaded file using the following command:
tar -xvzf spring-boot-cli-2.4.7-bin.tar.gz
  1. Set the SPRING_HOME environment variable to the installation directory.
  2. Add the bin directory of the installation directory to the PATH environment variable.
  3. Verify the installation by running the following command:
spring --version

This should display the version of Spring Boot CLI installed on your system.