Installation
enx provides a one-line POSIX-shell installer that works across macOS, Linux, and Windows POSIX environments. You can also build from source.
Table of Contents
- TOC
Install with POSIX shell (all OSes)
Run the installer script from a POSIX shell (bash or zsh) — it downloads the latest nightly binary and places it in ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/enxilium/enx-cli/main/scripts/install.sh -o install.sh
sh install.sh
enx setup
On Windows, use Git Bash, MSYS2, Cygwin, or WSL.
What the script does
- Detects your OS and architecture (Linux/macOS: x86_64 or aarch64, Windows POSIX env: x86_64)
- Downloads the matching binary from the latest
nightlyrelease on GitHub - Installs it to
~/.local/bin(override withENX_INSTALL_DIR) - Prints next steps to run
enx setupin your current shell
Environment variables
| Variable | Default | Description |
|---|---|---|
ENX_REPO |
enxilium/enx-cli |
GitHub repo to download from (for forks) |
ENX_CHANNEL |
nightly |
Release tag to install |
ENX_INSTALL_DIR |
~/.local/bin |
Where to place the binary directory |
Building from Source
Requires Rust (stable).
git clone https://github.com/enxilium/enx-cli.git
cd enx-cli
cargo build --release
The binary will be at target/release/enx. Copy it somewhere on your PATH and run enx setup.
Post-Install
After installation, run enx setup. It:
- Creates the global config directory (
~/.config/enx/on Linux/macOS,~\AppData\Roaming\enx\on Windows) - Initializes
config.tomlandregistry.toml - Regenerates shell integration for Bash and Zsh
If shell integration does not take effect immediately, restart your shell or source your shell config file.
If
~/.local/binis not in yourPATH, add it to your shell profile.