| name | proto |
| description | This skill should be used when the user asks to "install proto", "configure proto", "manage tool versions", "pin versions", "set up .prototools", "install node version", "install rust version", "install python version", "proto plugins", or mentions proto commands, .prototools file, or multi-language version management. |
proto - Pluggable Multi-Language Version Manager
proto is a next-generation version manager for multiple programming languages. It provides a unified interface for managing Node.js, npm, pnpm, yarn, Bun, Deno, Rust, Go, Python, and 800+ tools via plugins.
When to Use proto
- Managing language/tool versions across projects
- Pinning versions in
.prototools for team consistency
- Installing and running tools without global pollution
- Replacing nvm, pyenv, rustup, gvm with a single tool
Installation
bash <(curl -fsSL https://moonrepo.dev/install/proto.sh)
bash <(curl -fsSL https://moonrepo.dev/install/proto.sh) 1.2.3 --yes
Shell Setup
eval "$(proto activate bash)"
eval "$(proto activate zsh)"
Quick Reference
Core Commands
proto install <tool>
proto install node 20.10.0
proto install node --build
proto run <tool>
proto exec node pnpm -- cmd
proto pin <tool> <version>
proto pin <tool> --global
proto versions <tool>
proto outdated
proto clean
proto upgrade
proto diagnose
proto debug config
proto debug env
Configuration: .prototools
node = "20.10.0"
npm = "10.2.0"
pnpm = "8.12.0"
yarn = "4.0.0"
bun = "1.0.0"
deno = "1.40.0"
rust = "1.75.0"
go = "1.21.0"
python = "3.12.0"
[plugins]
my-tool = "https://example.com/plugin.wasm"
[settings]
auto-install = true
auto-clean = true
detect-strategy = "prefer-prototools"
[env]
NODE_ENV = "development"
Version Specifiers
| Format | Example | Description |
|---|
| Exact | "20.10.0" | Exact version |
| Major | "20" | Latest 20.x.x |
| Tilde | "~20.10" | Patch updates only |
| Alias | "stable" | Language-specific alias |
Supported Tools (Built-in)
JavaScript/TypeScript
proto install node
proto install npm
proto install pnpm
proto install yarn
proto install bun
proto install deno
Systems Languages
proto install rust
proto install go
Other
proto install python
Version Detection Order
- CLI argument:
proto run node 18.0.0
- Environment variable:
PROTO_NODE_VERSION=18.0.0
- Local
.prototools (current + parent dirs)
- Ecosystem files:
.nvmrc, .node-version, package.json engines
- Global
.prototools: ~/.proto/.prototools
Common Workflows
Pin Versions for Team
proto pin node 20.10.0
proto pin pnpm 8.12.0
proto pin node 20 --global
Install All Tools
proto install
Check for Updates
proto outdated
proto outdated --update --latest
Run with Specific Version
proto run node 18 -- script.js
PROTO_NODE_VERSION=18 proto run node
Proto Exec (v0.53+)
Bootstrap an environment with multiple tools:
proto exec node@24 pnpm@10 ruby@3.4 -- pnpm run app:start
proto exec --tools-from-config -- npm test
proto exec node pnpm -- bash
Build From Source (v0.45+)
Compile tools from source (useful when pre-built binaries unavailable):
proto install ruby --build
proto install node --build
proto install python --build
Supported: Deno, Go, Moon, Node, Python, Ruby.
[settings.build]
install-system-packages = true
write-log-file = true
Plugins
Add Third-Party Plugin
proto plugin add atlas "https://raw.githubusercontent.com/.../plugin.toml"
proto install atlas
List Plugins
proto plugin list
proto plugin list --versions
Plugin Sources
[plugins]
atlas = "https://example.com/atlas/plugin.toml"
custom = "https://example.com/plugin.wasm"
my-tool = "github://org/repo"
local = "file://./target/wasm32-wasip1/release/plugin.wasm"
WASM Plugin Development
Build plugins with proto_pdk crate targeting wasm32-wasip1:
cargo build --target wasm32-wasip1 --release
proto install my-tool --log trace
Test configuration for local development:
[settings]
unstable-lockfile = true
[plugins.tools]
my-tool = "file://./target/wasm32-wasip1/release/my_tool.wasm"
Required WASM functions:
register_tool - Metadata (name, type)
download_prebuilt - Configure download/install
locate_executables - Define executable paths
load_versions - Fetch available versions
Optional: native_install, detect_version_files, parse_version_file
Settings
[settings]
auto-install = true
auto-clean = true
detect-strategy = "prefer-prototools"
pin-latest = "local"
unstable-lockfile = true
telemetry = false
[settings.http]
proxies = ["https://internal.proxy"]
root-cert = "/path/to/cert.pem"
[settings.offline]
timeout = 500
Environment Variables
| Variable | Description |
|---|
PROTO_HOME | Installation directory (default: ~/.proto) |
PROTO_LOG | Log level (trace, debug, info, warn, error) |
PROTO_*_VERSION | Override version for tool |
PROTO_ENV | Environment for config lookup |
PROTO_BYPASS_VERSION_CHECK | Skip version validation |
Development/Testing Variables
| Variable | Description |
|---|
PROTO_TEST | Enable test mode (loads test plugins) |
PROTO_DEBUG_COMMAND | Show detailed command execution |
PROTO_DEBUG_WASM | Enable WASM plugin debugging |
WASMTIME_BACKTRACE_DETAILS | Detailed WASM backtraces |
Integration with moon
proto is the toolchain backend for moon. Configure in .moon/toolchains.yml (v2):
javascript:
packageManager: "pnpm"
node:
version: "20.10.0"
Or pin moon itself via proto:
moon = "1.31.0"
CI/CD Integration
- uses: moonrepo/setup-toolchain@v0
with:
auto-install: true
Additional Resources
For detailed configuration, consult:
references/config.md - Complete .prototools reference
references/plugins.md - Plugin development guide
references/commands.md - Full CLI reference
Examples
examples/prototools-full.toml - Complete configuration
examples/plugin.toml - TOML plugin example