A Spring Shell CLI application. Built with Spring Boot 4.0.4 and Spring Shell 3.4.2.
- Interactive command-line interface powered by Spring Shell
- Java 17+ support
- Fast startup with minimal logging
- Easy installation via one-liner command
curl -fsSL https://github.com/TengMengHouy/shell-cli/raw/main/install.sh | bash
shell-cliStep 1 — Open PowerShell
- Press Win + X
- Select "Windows PowerShell" (or "Windows Terminal")
Step 2 — Run the install command Run this in PowerShell (downloads and runs installer):
irm https://github.com/TengMengHouy/shell-cli/raw/main/install.ps1 | iexNotes:
irm= Invoke-RestMethod (downloads the script)iex= Invoke-Expression (executes it)
What the installer does:
- Creates:
%USERPROFILE%\.local\bin - Downloads JAR to:
%USERPROFILE%\.local\bin\shell-cli.jar - Creates wrapper:
%USERPROFILE%\.local\bin\shell-cli.batthat runs:java --enable-native-access=ALL-UNNAMED -jar "%USERPROFILE%\.local\bin\shell-cli.jar" %*
Step 3 — Add to PATH
- Press Win + X → System
- Click "Advanced system settings"
- Click "Environment Variables"
- Under "User variables", click "New"
- Name:
PATH - Value:
%USERPROFILE%\.local\bin
- Name:
- Click "OK" three times
- Restart PowerShell
Step 4 — Run the CLI In PowerShell run:
shell-cliNotes
- Ensure a compatible Java runtime is installed.