Skip to content

Using dill as a command-line tool

To use dill, install it then run dill [URL] in a terminal to download a file. You can use dill --help to see the full usage info.

Download a file

The following command will download a JSON file named test1.json to the current directory.

Terminal window
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/test1.json

Download a tarball and extract it to a folder

The following command will download tarball and extract its contents to the current directory.

Terminal window
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/tarball2.tar.gz --extract

Extract to a specific folder

You can also extract the tarball to a different folder using the --out flag.

Terminal window
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/tarball2.tar.gz --extract --out folder

Decompress a single gzipped file Untested

Terminal window
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/test5.json.gz --extract