A command-line tool that downloads files and automatically extracts archives.
Think curl or wget, but if the file is an archive, it gets extracted for you.
.tar.gz/.tgz.tar.bz2/.tbz2.tar.xz/.txz.tar.zst/.tzst.zip.gz.bz2.xz.zst
Download a prebuilt binary from the releases page.
cargo install --git https://github.com/idlebot/dex# Download and auto-extract an archive
dex https://example.com/archive.tar.gz
# Extract to a specific directory
dex https://example.com/archive.tar.gz -o ./mydir
# Download without extracting
dex https://example.com/archive.tar.gz --no-extract
# Download, extract, and keep the original archive
dex https://example.com/archive.tar.gz --keep
# Download a regular file (no extraction needed)
dex https://example.com/file.txtPoint dex at a GitHub releases page and it automatically picks the right binary for your platform:
# Download latest release for your platform
dex https://github.com/BurntSushi/ripgrep/releases
# Download a specific version
dex https://github.com/BurntSushi/ripgrep/releases/tag/14.1.1
# Just the repo URL works too
dex https://github.com/BurntSushi/ripgrep
# Override platform/arch detection
dex https://github.com/BurntSushi/ripgrep/releases --platform linux --arch arm64Set GITHUB_TOKEN to avoid API rate limits:
export GITHUB_TOKEN=ghp_...See CONTRIBUTING.md for development setup and guidelines.