[ Back to index ]
CM framework requires minimal dependencies to run on any platform: python 3.7+, pip, venv, git, git-lfs, wget, curl
.
By default, CM will pull Git repositories and cache installations and downloaded files in your $HOME/CM
directory on Linux and MacOS
or %userprofile%\CM
directory on Windows.
You can change it to any another directory using the CM_REPOS
environment variable, for example export CM_REPOS=/scratch/CM
.
Feel free to use the online installation GUI.
We have successfully tested CMX with the following system dependencies on Ubuntu 20.x, 22.x , 24.x:
sudo apt update
sudo apt install python3 python3-pip python3-venv git git-lfs wget curl
python3 -m venv cm
source cm/bin/activate
pip install cmind
Note that you may need to restart your shell to update PATH to the "cmx" binary.
Alternatively you can run
source $HOME/.profile
You can now check that all system dependencies are installed using the following command:
cmx init
You can also check that CMX core works using the following command:
cmx test core
We have successfully tested CM on Red Hat 9 and CentOS 8
sudo dnf update
sudo dnf install python3 python-pip git git-lfs wget curl
python3 -m pip install cmind --user
Note that CM currently does not work with Python installed from the Apple Store. Please install Python via brew as described below.
If brew
package manager is not installed, please install it as follows (see details here):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Don't forget to add brew to PATH environment as described in the end.
Then install python, pip, git and wget:
brew install python3 git git-lfs wget curl
python3 -m pip install cmind
Sometimes python does not add cm
and cmr
binaries to the PATH
environment variable.
You may need to find these files and add their path to PATH
variable.
We plan to simplify this installation in the future.
-
Configure Windows 10+ to support long paths from command line as admin:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
-
Download and install Git from git-for-windows.github.io.
- Configure Git to accept long file names:
git config --system core.longpaths true
- Configure Git to accept long file names:
-
Download and install Python 3+ from www.python.org/downloads/windows.
- Don't forget to select option to add Python binaries to PATH environment!
- Configure Windows to accept long fie names during Python installation!
-
Install CM via PIP:
python -m pip install cmind
Note that we have reports that CM does not work when Python was first installed from the Microsoft Store. If CM fails to run, you can find a fix here.
We plan to provide a self-sustained package in the future to simplify CM installation on Windows.
If the installation is successful, you can run the CM CLI as follows:
gfursin@cmind:~$ cmx
cmx {action} {automation} {artifact(s)} {flags} @input.yaml @input.json