macOS comes with the curl tool bundled with the operating system since many years. If you want to upgrade to the latest version shipped by the curl project, we recommend installing homebrew (a macOS software package manager) and then install the curl package from them: A popular and easy way to get libcurl installed for macOS is to use homebrew and then run this simple command in a terminal: