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
Section titled “Download a file”The following command will download a JSON file named test1.json to the current directory.
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/test1.jsonDownload a tarball and extract it to a folder
Section titled “Download a tarball and extract it to a folder”The following command will download tarball and extract its contents to the current directory.
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/tarball2.tar.gz --extractExtract to a specific folder
Section titled “Extract to a specific folder”You can also extract the tarball to a different folder using the --out flag.
$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/tarball2.tar.gz --extract --out folderDecompress a single gzipped file
Section titled “Decompress a single gzipped file”$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/test5.json.gz --extractDecompress a zip archive
Section titled “Decompress a zip archive”$ dill https://github.com/tylerbutler/tools-monorepo/raw/main/packages/dill/test/data/test4.zip --extract