drenv manages your DragonRuby installs and your game's dependencies — think rbenv and Bundler, for DragonRuby.
- Install and switch between DragonRuby versions — standard, indie, and pro, side by side.
- Scaffold new projects and pin each one to a version.
- Vendor Ruby dependencies into your game, reproducibly.
# macOS / Linux
curl -fsSL drenv.org/install.sh | bash# Windows (PowerShell)
irm https://drenv.org/install.ps1 | iexThe script drops the binary in ~/.drenv/bin and prints the line to add to your
$PATH. Update any time with drenv self-update.
Manual install / macOS Gatekeeper
Download a binary from the
releases page, move it to
~/.drenv/bin, and add that directory to your $PATH. On macOS, clear the
quarantine flag if you're warned:
xattr -d com.apple.quarantine ./drenvdrenv install # download DragonRuby (asks which tier you own)
drenv new my-game # scaffold a project on that version
cd my-game
drenv run # launch itdrenv new uses your newest install by default, so it just works. Have more
than one version or tier? They live side by side — drenv versions lists them,
and both new --version <v> and drenv use <v> take a specific one. See
Managing versions for tiers and version resolution.
Note
drenv install needs a DragonRuby purchase — itch.io for
standard, a dragonruby.org subscription for
indie/pro.
drenv vendors Ruby libraries into your game, Bundler-style. Add one:
drenv add github:Nitemaeric/conjurationthen require the generated bundle once, at the top of mygame/app/main.rb:
require 'app/drenv_bundle.rb'drenv run re-vendors everything before launching. Commit drenv.toml and
drenv.lock — the vendored copies are reproducible from the lockfile and stay
out of git. See Managing dependencies for the
drenv.toml format, entrypoint resolution, publishing a library, and CI.
Run drenv <command> --help for flags and details.
Engine management
| Command | Description |
|---|---|
install |
Download the latest DragonRuby (prompts a tier) |
register <path> |
Register a local install (a .zip or a folder) |
uninstall <version> |
Remove an installed version |
versions |
List installed versions |
changelog [ver] |
Print a version's changelog |
Project management
| Command | Description |
|---|---|
new <name> |
Scaffold a new project |
use [version] |
Switch the current project's version |
version |
Print the current project's version |
run [args...] |
Vendor dependencies and launch the game |
build [args…] |
Package locally (dragonruby-publish only) |
publish [args…] |
Verify dependencies, then dragonruby-publish |
Dependency management
| Command | Description |
|---|---|
add <source> |
Add and vendor a dependency |
remove <name> |
Remove a dependency |
list |
List dependencies and their locked revs |
update [name] |
Bump dependencies to their latest |
outdated |
Show which dependencies have upstream moves |
bundle |
Re-vendor from drenv.toml / the lockfile |
Managing drenv
| Command | Description |
|---|---|
self-update |
Update drenv itself |
Built with Deno. Tested on macOS (Apple Silicon), SteamOS (Linux AMD64), and Windows 11 with DragonRuby 5.32, 6.3, 6.4, 6.18, 7.11, and 7.13.