RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Commands

    rdx update

    Install the newest rdx of your build's channel in place of the one you are running, or only check whether there is one.

    rdx update replaces the rdx you are running with the newest one of the same channel. rdx update --check only tells you whether there is a newer one.

    Synopsis#

    text
    rdx update
    rdx update --check

    Anything else prints Run rdx update to install the newest rdx of this build's channel, or rdx update --check to only see whether there is one.

    It runs on macOS with Apple silicon and on Windows x64. On any other platform it says rdx update serves macOS on Apple silicon and Windows on x64; this build is for another platform. Nothing was changed.

    Check first#

    bash
    rdx update --check
    text
    rdx 0.2.0 (development 0123456789ab) → rdx 0.2.0 (development ba9876543210)
    Run rdx update to install it.

    When you are current it says <version> is already up to date. Both forms exit with status 0 whether or not there is a newer build.

    Install#

    bash
    rdx update
    text
    Updating rdx 0.2.0 (development 0123456789ab) → rdx 0.2.0 (development ba9876543210)
    Installed rdx 0.2.0 (development ba9876543210) at /path/to/rdx. The previous rdx is kept at /path/to/rdx.previous.

    Run rdx again to use the new one. A running rdx tui keeps running the old one until you open it again.

    What it checks#

    RDX reads a small description of the newest build from the download server for this build's channel. A build only ever looks at its own channel, and nothing at run time changes where it looks.

    • Release builds take a build only if its version is higher.
    • Development builds take a build only if it was committed later than your build. A newer build you made yourself is never replaced by an older published one. The same build is "already up to date", an older one is said to be older than yours, and one committed in the same second as yours is said not to be newer.

    Before it installs anything, RDX checks the download against the size and checksum the server published. It checks that the program inside answers --version as the build it should be, and on macOS that the program is signed in a way that matches the one you are running. A download that fails any check is not installed.

    What it leaves behind#

    The program you were running is kept beside the new one as rdx.previous (rdx.previous.exe on Windows, or rdx.previous-<n>.exe when an older copy still runs). To go back, put it in place of rdx.

    RDX only renames files and never the folder, so a shell that has it as its working directory keeps working. One update runs at a time in a folder, and a second one says so. If a lock file there belongs to another account, for example after sudo rdx update, the message names it. Remove it or update as that account.

    rdx update does not update RDX's components, the host and viewer. The new rdx installs the ones it needs when you first use them.

    In rdx tui#

    /update and /update --check do the same from the command palette. /update asks first. Some builds also update rdx tui as it opens. Set RDX_NO_AUTO_UPDATE=1 to stop that; see Environment variables.

    See also#

    Install, rdx doctor.