Install the whole package and update documentation

When installing CLI 2 following the instructions to find on this link, the package is not working ‘out of the box’. I use WSL2 on a Windows10 machine and before a succesful build I had to install first:


# execute succesful
mbed-tools compile --mbed-target NUCLEO_G474RE --toolchain GCC_ARM


// if you do not use the docker image:
sudo apt-get install ninja-build
sudo apt-get install gcc-arm-none-eabi
pip install PrettyTable
pip install future
pip install intelhex

// install latest version of cmake
2114 sudo apt remove --purge --auto-remove cmake
2115 sudo apt update
2116 sudo apt install -y software-properties-common lsb-release
2117 sudo apt clean all
2118 wget -O - 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
2121 sudo apt-add-repository “deb Kitware APT Repository $(lsb_release -cs) main”
2122 sudo apt update
2123 sudo apt install kitware-archive-keyring
2124 sudo rm /etc/apt/trusted.gpg.d/kitware.gpg
2125 sudo apt update
// note: update key in the following command based on previous error
2126 sudo apt-key adv --keyserver --recv-keys 42D5A192B819C5DA
2127 sudo apt update
2128 sudo apt install cmake
2129 cmake --version

Why not installing/checking all dependencies together with the installation of the package?

The package could benefit from clearer dependency documentation or an automated dependency check during installation for smoother setup.