Getting started
Install
Install the rdx command on macOS (Apple silicon) or Windows (x64), see what the installer verifies, and uninstall cleanly.
One command installs the rdx command-line tool on macOS or Windows.
Supported platforms#
| Platform | Status | Installer |
|---|---|---|
| macOS (Apple silicon) | Supported | install.sh |
| Windows (x64) | Supported | install.ps1 |
| Linux (x64, arm64) | Supported | The app (.deb or .tar.gz), or install.sh |
Intel Macs, 32-bit Windows and Windows on Arm are not supported. The macOS installer stops with a message on an Intel Mac, and the Windows installer stops on anything other than x64.
macOS (Apple silicon)#
curl -fsSL https://getrdx.io/install.sh | bashThe script installs one file, ~/.local/bin/rdx, and prints the version it installed. It needs curl or wget, tar, shasum or sha256sum, and the macOS codesign and spctl tools (all present on a normal Mac).
Choose a version, channel or folder#
Pass options after -s --:
curl -fsSL https://getrdx.io/install.sh | bash -s -- --version 0.1.0
curl -fsSL https://getrdx.io/install.sh | bash -s -- --prefix ~/bin
curl -fsSL https://getrdx.io/install.sh | bash -s -- --dry-run| Option | Meaning |
|---|---|
--version X | Install release X instead of the latest. A leading v is accepted. |
--channel C | Install from channel C. The default is release. |
--prefix DIR | Install into DIR instead of ~/.local/bin. |
--uninstall | Remove DIR/rdx. |
--dry-run | Show what would be downloaded and installed, and change nothing. |
--help | Print the installer's usage. |
Channel and version names may contain only letters, digits, ., _, - (and + in versions).
Put rdx on your PATH#
If the install folder is not already on your PATH, the installer prints the line to add:
export PATH="$HOME/.local/bin:$PATH"Add it to your shell profile (~/.zshrc for the default macOS shell), then open a new terminal and check:
rdx --versionWindows (x64)#
In PowerShell:
irm https://getrdx.io/install.ps1 | iexThe script installs %LOCALAPPDATA%\Programs\RDX\bin\rdx.exe and adds that folder to your user PATH. Open a new terminal afterwards so the change takes effect.
Because irm ... | iex cannot take parameters, options are environment variables, set in the same session first:
$env:RDX_VERSION = "0.1.0"
$env:RDX_DRY_RUN = "1"
irm https://getrdx.io/install.ps1 | iex| Variable | Meaning |
|---|---|
RDX_VERSION | Install this release instead of the latest. |
RDX_CHANNEL | Channel to install from. The default is release. |
RDX_INSTALL_DIR | Install folder. The default is %LOCALAPPDATA%\Programs\RDX\bin. |
RDX_UNINSTALL | Set to 1 to remove rdx.exe and its PATH entry. |
RDX_DRY_RUN | Set to 1 to show what would happen and change nothing. |
Remove the variables (Remove-Item Env:RDX_DRY_RUN) before running a real install in the same session.
What the installer verifies#
Both installers fetch a small manifest for the release, then check the download before anything is placed on your computer:
- The archive size matches the manifest.
- The archive's SHA-256 checksum matches the manifest.
- The archive contains no absolute paths or
..path components, so it cannot write outside its own folder. - On macOS, the
rdxbinary passescodesign --verify --strictand Gatekeeper'sspctl --assess.
If any check fails, the installer stops with a message and installs nothing. The file is copied into place only after every check passes, and a half-finished download cannot leave a partial install behind.
Check that it worked#
rdx --version
rdx doctorrdx doctor is read-only: it reports what this computer can do and never asks for permissions. See rdx doctor.
Uninstall#
First stop hosting and remove sign-in startup, if you set it up:
rdx host --daemon-removeThen remove the command.
On macOS:
curl -fsSL https://getrdx.io/install.sh | bash -s -- --uninstallAdd --prefix DIR if you installed somewhere else, and --dry-run to preview. On Windows:
$env:RDX_UNINSTALL = "1"
irm https://getrdx.io/install.ps1 | iexUninstalling removes only the rdx file (and, on Windows, its PATH entry). Saved pairings and components stay on disk. Running rdx host --daemon-remove first also removes the sign-in startup entry; saved pairings are kept either way.
Linux#
The same install.sh installs the rdx command on 64-bit Linux (x64 or arm64).
curl -fsSL https://getrdx.io/install.sh | shIt installs into ~/.local/bin, checks the download against the release manifest's SHA-256 and that it is a Linux program for your computer, and rdx update keeps it current from then on. The RDX app for Linux, which carries its own rdx, is on the home page's download links as a .deb or a .tar.gz for x64 and arm64.
Next#
Continue to the Quickstart.