I am trying to install Spring Boot CLI in Ubuntu. I am new to spring boot and was trying to learn it. I have already installed Gradle and groovy but did not find anything online to install Spring boot CLI.
5 Answers
please follow the code
sudo apt install unzip zip
curl -s https://get.sdkman.io | bash
source "/home/username/.sdkman/bin/sdkman-init.sh"=
sdk install springboot
spring version

- 638
- 9
- 19
-
I got "Stop! springboot is not a valid candidate." when I run sdk install springboot. – Japang LY Jun 02 '20 at 23:17
-
try this https://stackoverflow.com/a/44731320/7469332 – Paul Cheriyan Jul 21 '20 at 14:42
You can read the docs for installation steps:
Manual installation:
- Download the Spring CLI distribution: you can find the latest version link here.
- Extract the downloaded zip file to any path of your choice.
- Prerequisite: Make sure you have Java JDK v1.8 or above (check INSTALL.txt file from extracted archive in Step-1). You can check your JDK version using command:
java --version
. - Add the spring CLI script's path to
$PATH
environment variable: For example, you can add below lines to your.bashrc
file in *nix systems:
export SPRING_HOME=/path/to/your/extracted-spring-cli/spring-2.4.0
export PATH=$SPRING_HOME/bin:$PATH
After saving the .bashrc
file, run $ source .bashrc
to reload the environment variables you just added.
- (optional; and not for Windows user) Shell auto-completion scripts are provided for BASH and ZSH with the extracted archive in Step-1. Add symlinks to the appropriate location for your environment. For example, something like:
ln -s /path/to/your/extracted-spring-cli/spring-2.4.0/shell-completion/bash/spring /etc/bash_completion.d/spring
ln -s /path/to/your/extracted-spring-cli/spring-2.4.0/shell-completion/zsh/_spring /usr/local/share/zsh/site-functions/_spring
To check if you are using BASH or ZSH, run the command: $ echo $SHELL
.
- DONE: To test if you have successfully installed the CLI you can run the following command:
spring --version
.

- 18,551
- 8
- 57
- 87
Here is detailed instruction on how to do it, much more useful than official one, at least for manual installation. One more thing - to make path change permanent you might need to logout - login, as "source /etc/profile" will be effective only for currently opened terminal.

- 7,238
- 14
- 83
- 113
Use this link to get a detailed instruction on how to download the Spring framework successfully, It really helped me a lot after long time of making research.
https://www.decodejava.com/download-and-install-spring-framework.htm

- 77
- 1
- 6