The Spring Boot CLI version 3.0.0 hasn't the "run" command. But the spring-boot-reference document still has that.
>spring run app.groovy
'run' is not a valid command. See 'help'.
>
>spring help
usage: spring [--help] [--version]
<command> [<args>]
Available commands are:
init [options] [location]
Initialize a new project using Spring Initializr (start.spring.io)
encodepassword [options] <password to encode>
Encode a password for use with Spring Security
shell
Start a nested shell
shell
Start a nested shell
Common options:
--debug Verbose mode
Print additional status information for the command you are running
See 'spring help <command>' for more information on a specific command.
Comment From: sannanansari
Hello @scottfrederick, I want to contribute to spring boot, can I help on this issue.
Comment From: digitter
What's the alternative command?
Comment From: reasonpun
What's the alternative command?
Comment From: scottfrederick
@reasonpun There is no replacement for the Spring CLI run command in Spring Boot 3.0. See #32263 for the justification.
Comment From: sannanansari
Thanks @scottfrederick for your reference, I have made pull request #33519.
Comment From: reasonpun
Thanks @scottfrederick
Comment From: scottfrederick
Closing in favor of #33519.