Skip to content

idlebot/dex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dex

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.

Supported Formats

  • .tar.gz / .tgz
  • .tar.bz2 / .tbz2
  • .tar.xz / .txz
  • .tar.zst / .tzst
  • .zip
  • .gz
  • .bz2
  • .xz
  • .zst

Installation

From GitHub Releases

Download a prebuilt binary from the releases page.

From Source

cargo install --git https://github.com/idlebot/dex

Usage

# 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.txt

GitHub Releases

Point 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 arm64

Set GITHUB_TOKEN to avoid API rate limits:

export GITHUB_TOKEN=ghp_...

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

About

A download tool that automatically extracts archives

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages