3 releases
Uses new Rust 2024
| new 0.0.5 | Jan 4, 2026 |
|---|---|
| 0.0.4 | Oct 14, 2025 |
| 0.0.1 | Jul 8, 2025 |
#392 in Configuration
50KB
1K
SLoC
DATEX CLI
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.
Installation
The DATEX CLI can be installed on various platforms. Below are the installation methods for different operating systems.
Brew
You can install the DATEX CLI using Homebrew:
brew install unyt-org/datex-cli/datex
Install Script
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
From source
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
Usage
Running the REPL
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
Running a DATEX file
datex run path/to/file.dx
Development
Running the REPL
cargo run
Running the Workbench
cargo run workbench
Building for Release
cargo build --release
./target/release/datex_cli
© unyt 2025 • unyt.org
Dependencies
~30–48MB
~701K SLoC