Download the Mend CLI
Overview
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 tool 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 are supported by the Mend CLI:
Linux (Intel processors): Ubuntu, Debian, and other flavors which 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:
Enable the default Docker socket in the Advanced settings.
Default directories in File sharing are shared (
/Users
,/tmp
and/var/folders
).
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.
Download the Mend CLI - Download Commands and Links
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 |
| |
MacOS (Apple Silicon) | arm64 |
| |
MacOS (Intel) | amd64 |
| |
Windows (Intel) | amd64 |
|
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 |
| |
MacOS (Apple Silicon) | arm64 |
| |
MacOS (Intel) | amd64 |
| |
Windows (Intel) | amd64 |
|
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 Container Images. The video also provides an example Mend SCA scan using the Mend CLI.