RDX / docs

    Loading index

    getrdx.ioPricingSign in

    Commands

    Global options and exit codes

    Help, version and the summary screen, plus exit codes and the environment variables that affect the command line.

    A few things apply to every command.

    Help, version and summary#

    CommandResult
    rdxA short summary of the commands most people need
    rdx --help, rdx -h, rdx helpFull help for this platform, including only the commands your build supports
    rdx --version, rdx -VThe version, for example rdx 0.1.0

    The summary:

    text
    RDX 0.1.0
    Remote desktop, from your terminal.
    
      rdx host              Share this computer; Ctrl+C stops
      rdx host --daemon     Keep sharing in the background, also after restarts
      rdx join <target> [--display <n>]  Connect to a computer running rdx host
      rdx list              Show computers you can join
      rdx host down         Stop sharing
    
    Run rdx --help for every command.

    Lines for commands your build cannot run are left out. Development builds append their source revision to the version line.

    Exit codes#

    CodeMeaning
    0A supported command completed, including a report that notes unavailable integrations, and rdx update --check whether or not a newer build exists
    1Failure: a component is missing, a host cannot be reached or stopped, a file is unreadable, or a command is not implemented
    2Invalid arguments. The message is Invalid arguments. Run rdx --help for supported commands. or a more specific reason

    --json is supported only by rdx doctor, rdx list and rdx devices.

    Environment variables#

    VariableUsed byMeaning
    RDX_STATE_DIRlist, devices, tui, viewer, quality, host, doctor, mcpReplace the directory where RDX keeps its local history, names and tracked machines. Commands that change the installed RDX's own settings (viewer, quality, host lan, host media, host audio) refuse while it is set, and commands that read the running host skip it. Defaults: Application Support on macOS, %LOCALAPPDATA%\rdx on Windows, $XDG_STATE_HOME/rdx or ~/.local/state/rdx on Linux
    RDX_NO_AUTO_UPDATEtuiSet to 1 to stop the interface from updating itself as it opens, in builds that do so
    RDX_TUI_THEMEtuinight (default), day or terminal
    NO_COLORtuiTurn colour off

    The installers read their own variables; see Install. The full list is in Environment variables.

    Targets#

    Commands that take a target accept an exact Tailscale short name, full MagicDNS name, IPv4 or IPv6 address; join also accepts private LAN IPv4 addresses. See rdx join.