joulectl

From zero to a running use case in minutes

The Joule command-line tool. Run the complete stack on your own computer, then deploy and manage transports, streams and use cases from the terminal or CI.

~/joule-sandbox — joulectl
# install, then start the full Joule stack
$ pip install joulectl
$ joulectl init --token @joule-licence.jwt
$ joulectl local init
$ joulectl local up --wait
✓ Guardian healthy · Studio on http://127.0.0.1:3000
$ 
1
command to a full stack
5
steps to a use case

Built for developers

A thin client over Guardian's REST API, the same API that Joule Studio uses.

One command to a full stack

Guardian, the database, Joule Studio and a Joule daemon start together on Docker Compose or minikube. Add Kafka with a flag.

Signed in for you

up --wait creates an administrator API key that lasts 30 days and stores it, so every command works straight away.

Safe in CI

Add -o json to any read command. Every failure returns a non-zero exit code, so scripts and pipelines stop when they should.

Scoped access

Give each person or script a role or an exact list of scopes. Each command states the scope it needs.

Local or remote

Use the same commands against your laptop or a remote Guardian. Keep a separate key for each host.

Bring your own code

Load custom jars, Avro schemas and CSV files into the local daemon to test real connectors.

Quickstart

Five steps from nothing to your first running use case.

  1. 1

    Install

    You need Python 3.10 or newer, plus Docker with Compose v2 (or minikube and kubectl).

    pip install joulectl joulectl local doctor
  2. 2

    Add your licence

    Request a licence token from Fractalworks, then install it. joulectl shows the tier, expiry and limits.

    joulectl init --token @~/Downloads/joule-licence.jwt
  3. 3

    Start Joule

    Make a project folder and start the stack. The first start pulls the images. With --wait you are signed in automatically.

    mkdir -p ~/joule-sandbox && cd ~/joule-sandbox joulectl local init joulectl local up --wait
  4. 4

    Check it is running

    Every component should be healthy, and your local daemon registers as the pod local_pod.

    joulectl local status joulectl whoami joulectl ls pods
  5. 5

    Build a use case

    Open Joule Studio at http://127.0.0.1:3000, paste your local API key, then describe a use case in plain English.

    joulectl local key
    The Joule Studio use case assistant turns a plain English description into a pipeline

Commands you will use every day

Every command has its own --help with examples.

Run locally
$ joulectl local up --wait
# Start the stack and wait until it is healthy
$ joulectl local up --with-kafka
# Start with a Kafka broker
$ joulectl local down
# Stop the stack and keep your data
$ joulectl local userlib add YOUR.jar
# Load a custom jar (deserializers, processors)
Deploy and manage
$ joulectl deploy usecase FILE
# Deploy a use case from YAML or JSON
$ joulectl redeploy usecase NAME FILE
# Replace a use case in one atomic step
$ joulectl process pause NAME
# Pause processing (resume with process resume)
$ joulectl undeploy usecase NAME
# Remove a use case
Inspect and monitor
$ joulectl ls usecases
# List what is deployed
$ joulectl status usecase NAME --events
# Live counters and sample events
$ joulectl inspect usecase NAME
# Save a deployed specification to a file
$ joulectl ls transports --type SOURCE
# List sources or sinks
Access and licence
$ joulectl whoami
# Show who you are and your key scopes
$ joulectl license status
# Check your licence with Guardian
$ joulectl login
# Sign in to a remote Guardian with an API key