$linuxjunkies
>

rtx(1)

rtx is a polyglot runtime manager that installs and manages multiple programming language versions and tools.

UbuntuDebianFedoraArch

Synopsis

rtx [COMMAND] [OPTIONS] [ARGUMENTS]

Description

rtx is a fast, flexible runtime version manager written in Rust. It manages installations of Node.js, Python, Ruby, Go, Rust, and hundreds of other tools and runtimes. rtx automatically selects the correct version based on .rtx.toml or .tool-versions files in your project directory.

rtx uses a plugin system to support any language or tool. Versions are stored locally and can be activated globally, per-project, or per-shell session. It's designed as a modern replacement for nvm, pyenv, rbenv, and similar single-language version managers.

Common options

FlagWhat it does
installInstall a runtime or tool version, e.g., rtx install [email protected]
useActivate a runtime version for the current shell or project
listList available versions of a runtime
localSet or show the local (project-level) runtime version
globalSet or show the global (user-level) runtime version
shellSet or show the shell-level runtime version for the current session
uninstallUninstall a runtime or tool version
whichShow the path to the currently active version of a tool
--versionDisplay rtx version
-q, --quietSuppress output

Examples

Install Node.js version 18.0.0

rtx install [email protected]

Activate Python 3.11 in the current shell session

rtx use [email protected]

Set Node.js 20 and Python 3.12 as project defaults in .rtx.toml

rtx local node@20 [email protected]

Set Go 1.21 as your global default version

rtx global [email protected]

List all available Node.js versions in remote registries

rtx list node

Show the full path to the currently active Python interpreter

rtx which python

Remove Node.js 16.0.0 from your system

rtx uninstall [email protected]

Add support for managing Ruby versions via a custom plugin

rtx plugin install ruby https://github.com/asdf-vm/asdf-ruby.git

Related commands