mender-cli command not found

In this troubleshooting guide we learn how to fix mender-cli command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mender-cli: command not found

or when using sudo you get the following error message

sudo: mender-cli: command not found

Solutions to mender-cli: command not found

How To Fix mender-cli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mender-cli is provided by mender-cli package.

mender-cli is:

Mender is an open source over-the-air (OTA) software updater for embedded Linux devices. Mender comprises a client running at the embedded device, as well as a server that manages deployments across many devices.

This package contains a standalone tool that makes it much easier to work with the Mender server management APIs (https://docs.mender.io/apis/management-apis).

The goal with mender-cli is to simplify integration between the Mender server and cloud services like continuous integration (CI)/build automation.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mender-cli

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mender-cli.

sudo apt -y install mender-cli

Or if you have aptitude installed you can use the following command.

sudo aptitude install mender-cli

Summary

In this tutorial we learn how to fix mender-cli command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.