Install Spring Boot Command Line Interface on Ubuntu

In the previous tutorial, I have shown you how to install Spring Boot CLI on Windows. This tutorial, I will guide you to install it on Ubuntu!

First, download the latest version of the Spring Boot CLI for Ubuntu at http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/. Currently the latest version of Spring Boot is 1.4.1 so the file to be downloaded will be the file spring-boot-cli-1.4.1.RELEASE-bin.tar.gz. If you have a newer version, you can do the same!

In Ubuntu, you can use the wget command to download. Here, I downloaded the file spring-boot-cli-1.4.1.RELEASE-bin.tar.gz and put it in the user directory as follows:

Install Spring Boot Command Line Interface on Ubuntu

After downloading, please use the tar command of Ubuntu to unzip the download file!

The result is as follows:

Install Spring Boot Command Line Interface on Ubuntu

Now, we will add the environment variable for Spring Boot CLI!

To do this, open the .bashrc file in the user directory, and then add the following line to the end of the file.

With /home/khanh/spring-1.4.1.RELEASE/bin is the path to the bin directory of my Spring Boot CLI directory, replace it with your own directory.

Logout and login or run the following command in order to our configuration is effective!

Result:

Install Spring Boot Command Line Interface on Ubuntu

4/5 - (1 vote)

Add Comment