This document details troubleshooting steps for common problems with Mender workstation tools (mender-artifact and mender-cli).
flag provided but not defined: -cThe -c flag for mender-artifact was introduced in version 4.3.0. If you are using an older version (e.g. 3.9.0 from the default Ubuntu 24.04/Noble repository), you will see this error when trying to use the -c flag.
Solutions:
-t flag instead of -c in your commands. For example:
mender-artifact write rootfs-image -t device-type -n artifact-name .../bin/sh: 1: mender: not foundThis error occurs when using mender-artifact version older than 4.0.0 with Mender 4.0+ devices. The older mender-artifact versions are incompatible with the newer device client.
Solution:
Upgrade your mender-artifact to version 4.0.0 or later by following the installation instructions.
To check which version of mender-artifact you have installed:
mender-artifact --version
The recommended version is 4.3.0 or later for full compatibility with current documentation examples.
To check which version of mender-cli you have installed:
mender-cli --version
For installation and upgrade instructions, see Workstation Tools.