This directory contains example projects that demonstrate different ways to use Spring Shell. Each sample has its own README with build and run instructions; click the links below to open a sample.
- spring-shell-sample-hello-world — A simple command-line application that greets users.
- spring-shell-sample-non-interactive — A non-interactive sample that invokes commands (for example,
hi) and exits. - spring-shell-sample-petclinic — Spring PetClinic sample demonstrating shell commands for the PetClinic app.
- spring-shell-sample-secure-input — Sample showing secure input handling (e.g. password prompts).
- spring-shell-sample-spring-boot — A Spring Boot-based command-line sample.
To build all samples from the repository root run:
./mvnw clean installEach sample directory contains a README with specific run instructions and additional details.