Installation
enx provides one-line installers for macOS, Linux, and Windows. You can also build from source.
Table of Contents
- TOC
macOS / Linux
Run the installer script — it downloads the latest nightly binary, places it in ~/.local/bin, and runs enx setup:
curl -fsSL https://raw.githubusercontent.com/enxilium/enx-cli/main/scripts/install.sh | sh
What the script does
- Detects your OS and architecture (x86_64 / aarch64, Linux / macOS)
- Downloads the matching binary from the latest
nightlyrelease on GitHub - Installs it to
~/.local/bin/enx(override withENX_INSTALL_DIR) - Runs
enx setupto create your global config and configure shell integration
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 |
Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/enxilium/enx-cli/main/scripts/install.ps1 | iex
What the script does
- Detects architecture (AMD64)
- Downloads the Windows binary from the latest
nightlyrelease - Installs to
~\AppData\Local\enx\bin\enx.exe - Adds the install directory to your user
PATHif it isn’t already there - Runs
enx setup
Environment variables
| Variable | Default | Description |
|---|---|---|
ENX_REPO |
enxilium/enx-cli |
GitHub repo to download from |
ENX_CHANNEL |
nightly |
Release tag to install |
ENX_INSTALL_DIR |
~\AppData\Local\enx\bin |
Where to place the binary |
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, enx setup runs automatically. It:
- Creates the global config directory (
~/.config/enx/on Linux/macOS,~\AppData\Roaming\enx\on Windows) - Initializes
config.tomlandregistry.toml - Configures shell integration for your detected shell (Bash, Zsh, Fish, or PowerShell)
If shell integration does not take effect immediately, restart your shell or source your shell config file.
If
~/.local/bin(or the Windows equivalent) is not in yourPATH, you’ll need to add it manually to your shell profile.