Kest

Search

Search the documentation

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 | bash

This 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 version

Choose 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 bash

The 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

  1. Open the releases page and download kest-<version>.zip.
  2. Unzip it anywhere. The kest-<version>/bin folder holds kest (macOS and Linux) and kest.bat (Windows).
  3. Put that bin folder on your PATH.

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 version

Check that it works

kest list            # the schematics it can generate
kest new demo --package com.acme.demo && cd demo && gradle wrapper && ./gradlew run

Update 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 the PATH line.

Troubleshooting

MessageFix
Java 21 or newer is requiredinstall a JDK 21 (for example from Adoptium) and make sure java -version shows it; JAVA_HOME must point to it
kest: command not foundthe ~/.kest/bin folder is not on your PATH; open a new terminal after editing your shell profile
could not read .../releases/latestno release exists yet, or the repository is private (see the note above)

Read more