CLI
Install
Install the kest command line tool, update it and remove it.
The kest tool is a small JVM program. It needs Java 21 or newer (java -version should say 21 or higher) and nothing else.
Option 1: the install script (macOS and Linux)
curl -fsSL https://raw.githubusercontent.com/jamie-codez/kest/main/install.sh | bashThis downloads the latest release and unpacks it into ~/.kest. Then add it to your PATH:
export PATH="$HOME/.kest/bin:$PATH" # put this line in ~/.zshrc or ~/.bashrc
kest versionChoose a version or a folder:
curl -fsSL https://raw.githubusercontent.com/jamie-codez/kest/main/install.sh | KEST_VERSION=0.2.0 bash
curl -fsSL https://raw.githubusercontent.com/jamie-codez/kest/main/install.sh | KEST_HOME=$HOME/tools/kest bashThe script checks that Java 21+, curl and unzip exist and tells you what is missing. Read it first if you like: it is install.sh in the repository.
Private repository
While the repository is private, the script cannot download anonymously. Use GITHUB_TOKEN=<a token with repo read access> bash install.sh (it sends the token), or download the zip by hand as below.
Option 2: download by hand
- Open the releases page and download
kest-<version>.zip. - Unzip it anywhere. The
kest-<version>/binfolder holdskest(macOS and Linux) andkest.bat(Windows). - Put that
binfolder on yourPATH.
On Windows use this option and run kest.bat, or use WSL and Option 1.
Option 3: no install at all
Every project that kest new creates has the tool built in, as a Gradle task, so you can generate code without installing anything:
./gradlew kest --args="g controller users"Option 4: build it from source
git clone https://github.com/jamie-codez/kest.git && cd kest
./gradlew :cli:installDist
packages/cli/build/install/kest/bin/kest versionCheck that it works
kest list # the schematics it can generate
kest new demo --package com.acme.demo && cd demo && gradle wrapper && ./gradlew runUpdate and remove
- Update: run the install script again (it replaces the folder), or download the new zip.
- Remove: delete the folder (
rm -rf ~/.kest) and thePATHline.
Troubleshooting
| Message | Fix |
|---|---|
Java 21 or newer is required | install a JDK 21 (for example from Adoptium) and make sure java -version shows it; JAVA_HOME must point to it |
kest: command not found | the ~/.kest/bin folder is not on your PATH; open a new terminal after editing your shell profile |
could not read .../releases/latest | no release exists yet, or the repository is private (see the note above) |