You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rtx-cli

Package Overview
Dependencies
Maintainers
2
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtx-cli

polyglot runtime manager

2024.0.0
latest
Source
npmnpm
Version published
Weekly downloads
8
166.67%
Maintainers
2
Weekly downloads
 
Created
Source
rtx logo
Crates.io GitHub GitHub Workflow Status Discord

The front-end to your dev env.

What is it?

  • Like asdf (or nvm or pyenv but for any language) it manages dev tools like node, python, cmake, terraform, and hundreds more.
  • Like direnv it manages environment variables for different project directories.
  • Like make it manages tasks used to build and test projects.

30 Second Demo

The following shows using rtx to install different versions of node. Note that calling which node gives us a real path to node, not a shim.

demo

Quickstart

Install rtx on macOS (other methods here):

$ curl https://rtx.jdx.dev/install.sh | sh
$ ~/.local/share/rtx/bin/rtx --version
rtx 2024.0.0

Hook rtx into your shell (pick the right one for your shell):

# note this assumes rtx is located at ~/.local/share/rtx/bin/rtx
# which is what install.sh does by default
echo 'eval "$(~/.local/share/rtx/bin/rtx activate bash)"' >> ~/.bashrc
echo 'eval "$(~/.local/share/rtx/bin/rtx activate zsh)"' >> ~/.zshrc
echo '~/.local/share/rtx/bin/rtx activate fish | source' >> ~/.config/fish/config.fish

Install a runtime and set it as the global default:

$ rtx use --global node@20
$ node -v
v20.0.0

Full Documentation

See rtx.jdx.dev.

FAQs

Package last updated on 31 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts