Skip to main content
Skip table of contents

Download the Mend CLI

Download the latest version of Mend CLI tailored for your platform into a directory where you typically store your binary executable files as part of your PATH environment variable.

Note: The Mend CLI auto-updates by default to ensure you’re always running the latest version. If you have auto-updates disabled, the Mend CLI will notify you when a new version is available before running your command.

Getting it done

Prerequisites before you install the Mend CLI

  • The following operating systems and deploying services are supported by the Mend CLI:

    • Linux (Intel processors): Ubuntu, Debian, and others that have glibc (GNU C library)

    • Windows: Windows 10/11 or Windows Server 2016 and higher

    • MacOS (SAST only) Docker for Mac is installed.

      • For Docker Desktop users:

      • For Podman Desktop users (Supported for Mend SAST only):

        • Set the MEND_SAST_CONTAINER_HOST_ADDRESS environment variable. Please see our Mend CLI SAST configuration page for more information.

        • The Podman machine must be created with root privileges (See Podman Desktop documentation: Creating a Podman machine).

        • Note: If you used the Mend CLI prior to v23.10.2, after updating, make sure to delete the .mend folder before running your next scan (i.e. rm -rf ~/.mend).

    • Amazon Linux: ActivePerl being installed with libperl.so library (SAST only).

  • The following specifications are recommended system requirements for optimal performance

    • 4-core processor

    • 8GB of RAM

  • Have an active Mend license.

  • Access to the relevant Mend organization to retrieve your user key.

  • Access to read your application’s source code on a file system.

You can download the latest version of the Mend CLI tailored to your platform into a directory that you can readily access, like/usr/local/bin/mend, using the command in the ‘Download Command’ column in the table below. This command combines downloading and adding execution permissions using:  sudo chmod +x.

You can alternatively use the direct download URLs in the ‘Direct Download URL’ column.

Platform

Architecture

Download Command

Direct Download URL

Linux (Intel)

amd64

CODE
sudo curl https://downloads.mend.io/cli/linux_amd64/mend -o /usr/local/bin/mend && sudo chmod +x /usr/local/bin/mend

Mend CLI for Linux (Intel)

MacOS (Apple Silicon)

arm64

CODE
sudo curl https://downloads.mend.io/cli/darwin_arm64/mend -o /usr/local/bin/mend && sudo chmod +x /usr/local/bin/mend

Mend CLI for MacOS (Apple Silicon)

MacOS (Intel)

amd64

CODE
sudo curl https://downloads.mend.io/cli/darwin_amd64/mend -o /usr/local/bin/mend && sudo chmod +x /usr/local/bin/mend

Mend CLI for MacOS (Intel)

Windows (Intel)

amd64

CODE
mkdir C:\mend\cli && curl https://downloads.mend.io/cli/windows_amd64/mend.exe -o C:\mend\cli\mend.exe

Mend CLI for Windows (Intel)

Note: Linux arm64 is not currently supported.

Mend CLI Integrity Check

Each Mend CLI binary is deployed with a corresponding .sha256 file that you can download, to verify the integrity of the CLI binary.
To download the .sha256 file, simply add “.sha256” to the CLI download URL.

Example: https://downloads.mend.io/cli/linux_amd64/mend.sha256

Notes:

  • (Recommended) If your installation directory is not /usr/local/bin/ on MacOS or Linux, add the directory to your PATH environment variable so you can run it from any directory. Learn more for MacOS, Linux or Windows.

  • (MacOS only) If you downloaded the file from a browser, open it from the Finder for the first time to grant permission in Settings > Privacy & Security to open it. After that, you can launch it from the Terminal.

 

Download the Self-Contained Mend CLI via the direct URL

Platform

Architecture

Download Command

Direct Download URL

Linux (Intel)

amd64

CODE
sudo curl https://downloads.mend.io/cli-standalone/mend_linux_amd64.tgz -o /usr/local/bin/mend_linux_amd64.tgz && sudo tar -xzvf /usr/local/bin/mend_linux_amd64.tgz && sudo chmod +x /usr/local/bin/mend-linux-amd64/mend

Mend CLI for Linux (Intel)

MacOS (Apple Silicon)

arm64

CODE
sudo curl https://downloads.mend.io/cli-standalone/mend_macos_arm64.tgz -o /usr/local/bin/mend_macos_arm64.tgz && sudo tar -xzvf /usr/local/bin/mend_macos_arm64.tgz && sudo chmod +x /usr/local/bin/mend-macos-arm64/mend

Mend CLI for MacOS (Apple Silicon)

MacOS (Intel)

amd64

CODE
sudo curl https://downloads.mend.io/cli-standalone/mend_macos_amd64.tgz -o /usr/local/bin/mend_macos_amd64.tgz && sudo tar -xzvf /usr/local/bin/mend_macos_amd64.tgz && sudo chmod +x /usr/local/bin/mend-macos-amd64/mend

Mend CLI for MacOS (Intel)

Windows (Intel)

amd64

CODE
mkdir C:\mend\cli && curl https://downloads.mend.io/cli-standalone/mend_windows_amd64.tgz -o "C:\mend\cli\mend.tgz" && tar -xvzf "C:\mend\cli\mend.tgz"

Mend CLI for Windows (Intel)

 

Download the Mend CLI - Video walkthrough

This video demonstrates how to download and set up the Mend CLI for Mend SCA, Mend SAST, and Mend Cloud Native. The video also provides an example Mend SCA scan using the Mend CLI.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.