docs / guides/dependenciesspring-cli

Manage dependencies ​

spring-cli can inspect Maven dependencies and query Maven Central for newer stable versions.

List dependencies ​

bash
spring-cli deps list

The command reads Maven pom.xml files in the project, displays declared dependencies and scopes, and marks available updates. It does not change files. Dependencies whose versions are managed by a parent or BOM are reported without an update suggestion.

Upgrade versions ​

bash
spring-cli deps upgrade

The upgrade action can update explicit dependency versions and the spring-boot-starter-parent version in Maven POM files. BOM-managed dependencies are left unchanged. Review and test the resulting POM changes before committing them.

Both actions need network access to query Maven Central. If no build files or dependencies are found, deps list reports that there is nothing to inspect.

To query a Maven Central-compatible mirror, set SPRING_CLI_MAVEN_CENTRAL_URL to its repository base URL. By default, spring-cli uses https://repo1.maven.org/maven2.

Current build-tool support ​

Generated spring-cli projects use Maven. The project config currently accepts buildTool: "maven"; Gradle dependency parsing and upgrading are not available.