Hello. I used Spring CLI 2.3.x and used to use commands encrypt/decrypt from passwords encryption. But recently I installed version 3.2.0 and don't see these commands there. Is this bug or how can I use this tools with new version of Spring CLI 3.2.0? Currently I see only these commands set:

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

Common options:

  --debug Verbose mode   
    Print additional status information for the command you are running

Comment From: mhalbritter

With Spring CLI 2.3.12.RELEASE i see these options:

> spring --help
usage: spring [--help] [--version] 
       <command> [<args>]

Available commands are:

  run [options] <files> [--] [args]
    Run a spring groovy script

  grab                
    Download a spring groovy script's dependencies to ./repository

  jar [options] <jar-name> <files>
    Create a self-contained executable jar file from a Spring Groovy script

  war [options] <war-name> <files>
    Create a self-contained executable war file from a Spring Groovy script

  install [options] <coordinates>
    Install dependencies to the lib/ext directory

  uninstall [options] <coordinates>
    Uninstall dependencies from the lib/ext directory

  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

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.

Which one are you missing in 3.2.0? I don't see one to decrypt the password encryption. There's one called encodepassword, but this doesn't use encryption, but password hashing, which is a non-reversable process.

Comment From: wilkinsona

The encrypt and decrypt commands were part of the Spring Cloud extensions to Boot's CLI. This issue duplicates https://github.com/spring-cloud/spring-cloud-cli/issues/181 and https://github.com/spring-cloud/spring-cloud-cli/issues/180.

Edit: sorry, @mhalbritter, your comment didn't appear until I submitted mine. I think it hopefully answers your query too. Those commands were contributed by https://github.com/spring-cloud/spring-cloud-cli when it was added through the install command.

Comment From: eugene-kuntsevich

@wilkinsona thanks. But this issues both closed. Does it mean this was fixed?

Comment From: eugene-kuntsevich

@mhalbritter , this is exactly an issue what I mentioned: for 2.3.x I see this commands and don't see it for 3.2.0 (in the first message I attached list of available commands)

Comment From: wilkinsona

But this issues both closed. Does it mean this was fixed?

No, the commands have been dropped in Spring Cloud 2022.0 and later. https://github.com/spring-cloud/spring-cloud-cli/issues/180 suggested some alternatives.