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#
| Command | Result |
|---|---|
rdx | A short summary of the commands most people need |
rdx --help, rdx -h, rdx help | Full help for this platform, including only the commands your build supports |
rdx --version, rdx -V | The version, for example rdx 0.1.0 |
The summary:
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#
| Code | Meaning |
|---|---|
0 | A supported command completed, including a report that notes unavailable integrations, and rdx update --check whether or not a newer build exists |
1 | Failure: a component is missing, a host cannot be reached or stopped, a file is unreadable, or a command is not implemented |
2 | Invalid 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#
| Variable | Used by | Meaning |
|---|---|---|
RDX_STATE_DIR | list, devices, tui, viewer, quality, host, doctor, mcp | Replace 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_UPDATE | tui | Set to 1 to stop the interface from updating itself as it opens, in builds that do so |
RDX_TUI_THEME | tui | night (default), day or terminal |
NO_COLOR | tui | Turn 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.