This is the DATEX Command Line Interface (CLI) for interacting with the DATEX runtime. It offers a REPL (Read-Eval-Print Loop) for executing DATEX code interactively and a command to run DATEX files.
The DATEX CLI can be installed on various platforms. Below are the installation methods for different operating systems.
You can install the DATEX CLI using Homebrew:
brew install unyt-org/datex-cli/datex
You can install the DATEX CLI using the provided installation script. This script will download and install the latest version of the DATEX CLI.
curl -fsSL https://raw.githubusercontent.com/unyt-org/datex-cli/refs/heads/main/install.sh | sh
To select a specific version for the installation, you can pass the tag as an argument:
curl -fsSL https://raw.githubusercontent.com/unyt-org/datex-cli/refs/heads/main/install.sh | sh -s -- v0.1.0
Alternatively, you can build the DATEX CLI from source using Cargo, the Rust package manager. Make sure you have Rust and Cargo installed, then run:
cargo build --release
datex
Alternatively, you can also use the repl
subcommand:
datex repl
To show debug logs, run the repl
subcommand with the --verbose
or -v
flag:
datex repl -v
To start the repl with a specific DATEX configuration file, use the --config
or -c
flag:
datex repl --config path/to/config.dx
datex run path/to/file.dx
cargo run
cargo run workbench
cargo build --release
./target/release/datex_cli
© unyt 2025 • unyt.org