LightAtom

wget Command (and How to Get It on Mac)

macOS doesn't include wget. Install it with Homebrew, or use curl, which is already there and covers most wget tasks.

brew install wget

Install wget with Homebrew.

beginner5 minNeeds: Homebrew (for wget)

When to use it

Use wget when you need recursive downloads, mirroring a site or a folder, or when following instructions written for Linux. For single files and APIs, curl does the job without installing anything.

Steps

  1. Install wget

    With Homebrew installed, one command.
    brew install wget
  2. Download a file

    wget saves with the remote name, retries on failure, and shows a progress bar.
    wget https://example.com/file.zip
  3. Resume a download

    -c continues a partial file.
    wget -c https://example.com/big.iso
  4. Mirror a site for offline reading

    Downloads pages and assets and rewrites links to work locally. Respect the site's terms and rate limits.
    wget --mirror --convert-links --page-requisites --no-parent https://example.com/docs/

Output explained

Task wget curl (built in)
Download a file wget URL curl -L -O URL
Choose the name wget -O name URL curl -L -o name URL
Resume wget -c URL curl -L -O -C - URL
Retry wget --tries=5 URL curl --retry 5 -L -O URL
Recursive mirror wget --mirror URL not supported

Options and variations

FlagMeaningExample
-O FILESave as FILEwget -O latest.zip URL
-cContinue a partial downloadwget -c URL
-r / --mirrorRecursive download / mirrorwget --mirror URL
-qQuietwget -q URL
--limit-rate=NCap bandwidthwget --limit-rate=1m URL

Common errors

ErrorCauseFix
zsh: command not found: wgetwget isn't part of macOSbrew install wget, or use curl.
ERROR: cannot verify certificateUntrusted CA (often a proxy)Point --ca-certificate at the right CA file.

Do it in the app

LightAtom's connections view shows a download's live rate and the server it comes from.

Frequently asked questions

Does macOS have wget?

No. Install it with Homebrew (brew install wget), or use curl -L -O, which is built in.

What is the curl equivalent of wget?

curl -L -O URL downloads a file with its original name, following redirects. Add -C - to resume.

Can curl mirror a website like wget?

No, curl doesn't do recursive downloads. Use wget --mirror for that.

LightAtom team

The people who build LightAtom, a network monitor for macOS.