Install
View as MarkdownInstall dexcli, the Dex command-line tool, on macOS or Linux. Then start Dex on your machine.
Install dexcli
With Homebrew:
brew install superdurable/tap/dexcli
Without Homebrew, install from a release archive.
Install from a release archive
Download the archive for your system from the dexcli releases. There is one for macOS and Linux, each on amd64 and arm64, such as dexcli_vVERSION_linux_amd64.tar.gz. It holds dexcli and dex-server-zd. Keep both in the same directory on your PATH:
tar xzf dexcli_vVERSION_linux_amd64.tar.gz # VERSION is the release you downloaded
sudo mv dexcli dex-server-zd /usr/local/bin/
dexcli version
The release's checksums.txt verifies the download.
Start Dex
Start Dex Server and Dex Web:
dexcli dev
Wait for Dex development environment is ready. Dex Web then opens automatically in your browser when you run it in an interactive terminal outside CI. If the browser stays closed, open the Dex Web address it prints. The CLI reference explains the ports, the state directory, and the logs.
To keep the browser closed, add --open=false:
dexcli dev --open=false
Keep it running for the steps below. Ctrl+C stops it.
Run an example from the playground
In a second terminal, start the examples of one language. The first command extracts only that language's examples folder from the repository archive:
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/python
cd python
uv sync --locked
uv run --frozen python main.py
You need Python 3.11 or later and uv 0.12.2.
Example: examples/python
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/go
cd go
make bins
./dex-samples
You need Go 1.24 or later.
Example: examples/go
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/java
cd java
./gradlew bootRun
You need JDK 17 or later.
Example: examples/java
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/typescript
cd typescript
npm install
npm start
You need Node.js 22 (22.19 or later) or Node.js 24.
Example: examples/typescript
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/rust
cd rust
cargo run --locked --bin dex-examples-rust
You need Rust 1.97 or later.
Example: examples/rust
The example starts a Worker and an HTTP server on port 8080 by default. If dexcli dev prints a Dex Server address other than 127.0.0.1:8801, set DEX_FLOW_SERVICE_ADDRESS to that address (DEX_SERVER_ADDRESS for Rust). Examples describes each example.
In a third terminal, download and start the examples playground. It needs Python 3. If dexcli dev printed another Dex Web address, pass it to --dex-web:
curl -sL https://codeload.github.com/superdurable/dex/tar.gz/main | tar -xz --strip-components=2 dex-main/examples/playground
cd playground
./start.sh --port 3333 --example-server http://127.0.0.1:8080 --dex-web http://127.0.0.1:8802
The playground opens at http://127.0.0.1:3333. Pick an example and call its APIs in order. Here Customer refund with manager approval calls Start to start a refund, Approve or reject to approve it, and Describe to read the result:
In Dex Web, select the run on Flows. Graph shows the Steps it ran:
On Timeline, select an event to see its input and output in the selected event panel. Dex Web describes every view.
Fix connection problems
- A Worker or Client fails to connect. Check that dexcli dev still runs and printed Dex development environment is ready. Then check that the failing Worker or Client uses the Dex Server address it printed.
- dexcli dev fails with
127.0.0.1:8801 is already in use. A port you passed with-dex-portor-web-portis taken. Pass a free one, or leave the flag out. - The Worker is ready, but nothing runs. Check that the Worker registers the Flow type you start, and that both connect to the same Dex Server. If the Flow exists, inspect its pending or waiting reason in Dex Web.
- dexcli dev stops with an error. If the server fails to start, dexcli can print its last log lines and the log path. See Server logs for the default path.
Next
- Quick Start: run and operate one example end to end.
- CLI reference: ports, the state directory, logs, and a second Dex.