> ## Content Index
> Fetch the complete content index at: https://www.jvrc.ca/llms.txt
> Use this file to discover other available public pages before exploring further.

# Install any Ruby version in seconds using rv
- URL: https://www.jvrc.ca/install-any-ruby-version-in-seconds-using-rv/
- Published: 2026-05-16T15:06:00.000Z
- Updated: 2026-09-18T21:21:07.000Z
- Author: Javier Cervantes
- Tags: rubyforum, existing-topic

When you’re working with Ruby, **setting up ruby in your development environment** is one of the most important tasks. As you start creating or modifying projects, **managing different versions** and configuring dependencies can become a **challenging task**.

In this guide, you'll learn how to use [rv](https://rv.dev/?ref=jvrc.ca), a **very fast version and package manager for Ruby** to get started in minutes instead of hours. You'll be amazed of how fast the commands run and you won't need wait to compile anything ever again.

## Install

On macOS or Linux, install `rv` with Homebrew:

```bash
brew install rv

```

Alternatively, use the standalone installer script:

```bash
curl -LsSf https://rv.dev/install | sh

```

On Windows, open PowerShell as Administrator and run:

```bash
powershell -ExecutionPolicy Bypass -c "irm https://rv.dev/install.ps1 | iex"

```

**You’re now ready to start using any version of ruby in your projects.** You won't have to think about Ruby versions or gem dependencies when you want to run something. You can use `rv` for the following use cases:

### run any command or script

`rv run myscript.rb` \- This will automatically install ruby in seconds and let you run it.

### run any gem CLI directly

`rvx hanami new` \- Installs both ruby and the required CLI dependency to run the CLI tool.

### install project dependencies

`rv clean-install` \- If you have an existing project, this command will install Ruby and gems from Gemfile.lock

> Note: On Windows PowerShell, use `rvw` instead of `rv` because `rv` is an alias for the built-in `Remove-Variable`.

## Before you go

If you want to learn more about it, checkout this blog post with the latest [rv plan and progress update](https://andre.arko.net/2026/06/13/rv-plan-and-progress/?ref=jvrc.ca). For learning other commands or getting familiar with the tool, visit the [code repository](https://github.com/spinel-coop/rv?ref=jvrc.ca).

If you run into any problem, feedback or have questions about the process, you can create a new topic with the [#rv tag](https://www.rubyforum.org/tag/rv/71?ref=jvrc.ca) in the [Ruby Users Forum](https://www.rubyforum.org/?ref=jvrc.ca).