MXCMD is a lightweight shell and scripting language designed for command automation, file tools, regex processing, and custom command extensions.
Current packaged build targeted for MinGW-w64 testing and feedback.
CLI runtime, scripting support, and optional SDL/OpenGL console components for visual shell workflows.
mxcmd-cli
echo "hello from mxcmd"
pwd
commands
Install these prerequisites first: git, g++, cmake, and readline development headers.
git clone https://github.com/lostjared/libmx2.git --depth 1
cd libmx2/cmd
mkdir build && cd build
cmake .. -DCMD=ON -DSHARED=ON
cmake --build .
sudo cmake --install .
mxcmd-cli
For graphical console mode, compile with SDL2/OpenGL support plus libmx2.
git clone https://github.com/lostjared/libmx2.git --depth 1
cd libmx2/libmx
mkdir build && cd build
cmake .. -DEXAMPLES=OFF -DDEBUG_MODE=OFF
cmake --build .
sudo cmake --install .
cd ../../cmd
mkdir build && cd build
cmake .. -DCMD=ON -DSHARED=ON -DCONSOLE=ON
cmake --build .
sudo cmake --install .
cmd "build.mxcmd"
tokenize "script.mxcmd"
visual "script.mxcmd" "ast.html"
regex_search "[0-9]+" "abc123"
| Option | Description |
|---|---|
| -h, --help | Display help message |
| -v, --version | Display version |
| -i, --stdin | stdin input |
| -d, --debug | debug output |
| -s, --syntax | debug syntax highlighting output |
| -t, --tokens | debug token stream output |
| source_file.mxcmd | execute script file |
| -c <value>, --command <value> | run one command and exit |