goclidevtools

A small CLI that turns GitHub URLs into local files. Paste any GitHub URL — raw, blob, tree, or repo root — and it pulls the contents to disk.

What it does

  • ghdl <url> downloads whatever the URL points to: a single file, a directory tree, or a whole repo.
  • Output path via -o flag or as a second positional argument.
  • No API token needed — uses public GitHub endpoints.

Why

The “Download ZIP” button on GitHub is fine, but I kept wanting to grab a single file or a subdirectory without the noise of the rest of the repo. curl on raw URLs works but is fiddly with directory trees. ghdl fills the gap.

Install

go install github.com/bishalr0y/ghdl@latest

Single binary, no dependencies beyond the Go standard library.