Documentation

Installation

Install and switch DCR versions (stable / dev / night, pin a version, optional build from source).

Linux / macOS / BSD / Windows (bash)

Terminal
curl --proto '=https' --tlsv1.2 -sSf https://sh.dcr-tool.ru | sh -s -- self-install
export PATH="$HOME/.dcr/bin:$PATH"
dcrup install stable

Non-interactive install of DCR in one shot:

Terminal
curl --proto '=https' --tlsv1.2 -sSf https://sh.dcr-tool.ru | sh -s -- install stable
export PATH="$HOME/.dcr/bin:$PATH"

Windows (PowerShell)

Terminal
& ([scriptblock]::Create((irm https://ps1.dcr-tool.ru))) self-install
# $env:Path += ";$env:USERPROFILE\.dcr\bin"
dcrup install stable

After self-install, the command is dcrup (no .sh / .ps1) and is installed in ~/.dcr/bin (Unix) or %USERPROFILE%\.dcr\bin (Windows).

Common dcrup commands

Terminal
dcrup install stable              # latest stable prebuilt (auto: cf → gh → sf → ya)
dcrup install 0.7.3               # pin → 0.7.3@stable
dcrup install 0.7.3@dev           # v0.7.3-dev (falls back to v0.7.3 if no dev tag)
dcrup install stable --libc musl  # Linux only: musl asset (default: gnu)
dcrup install stable --mirror cf  # CloudFlare CDN
dcrup install stable --mirror ya  # Yandex CDN (RU fallback)
dcrup install stable --force      # reinstall even if present
dcrup install stable --build      # cargo build --release --features archive
dcrup install night               # always build from branch dev HEAD
dcrup default 0.7.3
dcrup update
dcrup list
dcrup show
dcrup which
dcrup uninstall 0.7.3    # remove one installed version
dcrup uninstall --all    # remove all installed versions

dcrup default <version> and dcrup uninstall <version> also find a floating stable-<version> install created by dcrup install stable. --build uses the same tag resolution as prebuilt installs, including the VERSION@dev fallback to vVERSION.

PowerShell-only options:

Terminal
dcrup install stable --target gnu    # x86_64 self-contained GNU build
dcrup install stable --no-modify-path
dcrup install stable --system        # %ProgramData%\dcr (Administrator)
dcrup self-uninstall

--libc is Linux-only (.sh installer). --target, --system, --no-modify-path, and self-uninstall are PowerShell-only. DCRUP_VERSION supplies the default spec when no version is passed.

Layout:

  • Unix: ~/.dcr/toolchains/<id>/dcr, with ~/.dcr/bin/dcr linked to the active version.
  • Windows PowerShell: %USERPROFILE%\.dcr\toolchains\<id>\dcr.exe; %USERPROFILE%\.dcr\bin\dcr.exe is the active copy.
  • Windows bash (Git Bash/MSYS2): the same dcr.exe layout; the prebuilt asset and bin entry include .exe.
  • --system / DCRUP_SYSTEM=1 uses %ProgramData%\dcr instead of the user profile.

Download mirrors

Prebuilt installs try cf → gh → sf → ya unless you pin a host.

Code URL Notes
cf https://cdn-global.dcr-tool.ru/<tag>/<asset> CloudFlare CDN (worldwide)
gh https://github.com/dexoron/dcr/releases/download/<tag>/<asset> GitHub Releases
sf https://sourceforge.net/projects/dcr-tool/files/<tag>/<asset>/download SourceForge
ya https://cdn-ru.dcr-tool.ru/<tag>/<asset> Yandex CDN (RU fallback)
Terminal
dcrup install stable --mirror auto   # default
export DCRUP_MIRROR=cf               # persist for this shell

Arch Linux (AUR)

Terminal
yay -S dcr

macOS / Linux (Homebrew)

Terminal
brew tap dexoron/dexoron
brew install dcr

Snap (Linux)

Terminal
sudo snap install dcrup

If classic Snap Store publishing is unavailable, install the .snap from GitHub Releases with --dangerous.

Nix (flake)

Terminal
nix run github:dexoron/dcr
nix profile install github:dexoron/dcr

Cargo (crates.io)

Terminal
cargo install dcr

Note: crates.io builds may omit optional features. For FAT disk images ([archive]), prefer release binaries or:

Terminal
cargo install dcr --features archive

From source

Terminal
git clone https://github.com/dexoron/dcr.git
cd dcr
cargo build --release --features archive
ln -sf "$PWD/target/release/dcr" ~/.local/bin/dcr
# or manage versions with dcrup install night / --build

Post-install

Terminal
dcr --version
dcrup show    # if installed via dcrup

Man pages (package installs / release assets):

Terminal
man dcr
man dcr-build

Registry (optional) — ~/.dcr/config.toml:

Editor
[registry.default]
url = "https://index.dcr.pm"
priority = 1