Installation
This page shows you how to:
- Install the
lhctlcommand-line utility for the LittleHorse Kernel. - Set up a LittleHorse Kernel for local development in Docker.
- Add the dependency for the LittleHorse SDK in the language of your choice.
For fast responses, we recommend you join our LittleHorse Community Slack Workspace to exchange ideas about and receive support for LittleHorse.
Your system will need:
breworgoto installlhctl(if you usego, make sure to put~/go/binin yourPATH).dockerto run the LittleHorse Kernel.- Either
go,java, orpythonto run the client libraries.
Downloads
Loading latest release...
LittleHorse CLI
You can install the lhctl utility either using homebrew or by downloading it from our github release page.
- Homebrew
- Github Artifacts
Installation via Homebrew has been tested on Mac and Linux.
brew install littlehorse-enterprises/lh/lhctl
You can find the latest releases of lhctl on our GitHub releases page under "Assets."
Just download the appropriate binary for your system architecture and put it somewhere in your PATH.
LittleHorse Kernel (Local Dev)
The easiest way to run the LittleHorse Kernel is using the lh-standalone docker image. You can do so as follows:
docker run --pull always --name littlehorse -d -p 2023:2023 -p 8080:8080 -p 9092:9092 ghcr.io/littlehorse-enterprises/littlehorse/lh-standalone:latest
Note that the lh-standalone image is only suitable for local development. Once the container is up and running, you should be able to verify that the server is working as follows:
-> lhctl version
lhctl version: 0.14.1 (Git SHA homebrew)
Server version: 0.14.1
The lh-standalone image takes some time to start up since it first starts a Kafka Broker process before starting the LittleHorse Kernel process. If your lhctl search wfSpec command fails at first, keep trying for about 20-40 seconds until Kafka is ready.
You should be able to access the LittleHorse Developer Dashboard at http://localhost:8080/ after the lh-standalone image has started up.
LittleHorse Client Libraries
All the LittleHorse Client libraries, including grpc clients, can be accessed through standard installation mechanisms in a language of your choice.
- Java
- Go
- Python
The Java Client Library is available on Maven Central. To add it as a dependency to your project, simply put the following in your build.gradle (or do the equivalent with your pom.xml)
implementation 'io.littlehorse:littlehorse-client:0.14.1'
You add the LittleHorse Go Library as a dependency to your Go project as follows:
go get github.com/littlehorse-enterprises/littlehorse@v0.14.1
You can install the LittleHorse Client Library as follows:
pip3 install littlehorse-client==0.14.1
Get Started
You can use one of the LittleHorse Quickstarts to get going really fast:
- Java Quickstart on GitHub and on YouTube
- Go Quickstart on GitHub and on YouTube
- Python Quickstart on GitHub and on YouTube
- C# Quickstart on GitHub
- Join Our Slack
Additional rich examples can be found at our core GitHub repository.