Reference
Environment variables
The environment variables that change how RDX and its installers behave.
Most of RDX needs no configuration. These variables cover the terminal interface, updates, where RDX keeps its files, and the installers.
Terminal interface#
| Variable | Values | Effect |
|---|---|---|
RDX_TUI_THEME | night (default), day, terminal | Colour theme for rdx tui. terminal uses your terminal's own colours. |
NO_COLOR | any non-empty value | Turns colour off in rdx tui. It wins over the theme. |
RDX_TUI_THEME=day rdx tui
NO_COLOR=1 rdx tuiUpdates#
| Variable | Values | Effect |
|---|---|---|
RDX_NO_AUTO_UPDATE | 1 | Stops rdx tui from updating itself as it opens. It matters only in builds that update the interface at launch. rdx update is not affected. |
State folder#
| Variable | Effect |
|---|---|
RDX_STATE_DIR | Replaces the folder where RDX keeps device history, pairing names and tracked machines. Without it RDX uses your Application Support folder on macOS and %LOCALAPPDATA%\rdx on Windows. |
Installer variables#
The macOS installer is a shell script and the Windows installer is a PowerShell script. They share these settings.
| Variable | Windows installer | macOS installer | Effect |
|---|---|---|---|
RDX_DL_BASE | Yes | Yes | Download base URL. The default is the official download host. |
RDX_VERSION | Yes | Use --version | Install this release instead of the latest |
RDX_CHANNEL | Yes | Use --channel | Release channel, default release |
RDX_INSTALL_DIR | Yes | Use --prefix | Install directory. Defaults: %LOCALAPPDATA%\Programs\RDX\bin on Windows, ~/.local/bin on macOS. |
RDX_UNINSTALL | Set to 1 | Use --uninstall | Remove the rdx command (and its PATH entry on Windows) |
RDX_DRY_RUN | Set to 1 | Use --dry-run | Show what would happen and change nothing |
Windows example:
$env:RDX_VERSION = "0.1.0"
$env:RDX_DRY_RUN = "1"
irm https://getrdx.io/install.ps1 | iexmacOS example, using the script's options:
curl -fsSL https://getrdx.io/install.sh | sh -s -- --dry-run