Skip to content

CLI Tools

All the command-line tools needed to develop and run Alex-powered projects.

Prerequisites

macOS

Xcode Command Line Tools: gives you git, clang, make, and other essentials:

bash
xcode-select --install

Homebrew: the package manager for macOS:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After installation, add to your shell profile (Apple Silicon / A-series):

bash
eval "$(/opt/homebrew/bin/brew shellenv)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "$HOME/.zprofile"

Windows

winget comes pre-installed on Windows 11. If missing, install "App Installer" from the Microsoft Store.

Git for Windows: gives you git, bash, and Unix tools:

powershell
winget install Git.Git

Visual Studio Build Tools: the Windows equivalent of Xcode CLT (only needed for native npm modules):

powershell
winget install Microsoft.VisualStudio.2022.BuildTools

Core Runtimes

ToolmacOSWindowsUsed For
Node.js (18+)brew install nodewinget install OpenJS.NodeJS.LTSAll muscles, hooks, shared modules, npm packages
Gitbrew install gitwinget install Git.GitVersion control, hooks, sync scripts
Python 3brew install pythonwinget install Python.Python.3.12Optional: data projects, scripting

Verify after install (same commands on both platforms):

bash
node --version    # Should be 18.x or higher
npm --version     # Comes with Node.js
git --version     # Should be 2.x+
python3 --version # If installed (use 'python --version' on Windows)

Document Pipeline

These tools power the markdown-to-document conversion muscles.

ToolmacOSWindowsUsed For
Pandocbrew install pandocwinget install JohnMacFarlane.PandocMarkdown → Word, Markdown → Email, Lua filters

Pandoc includes its own Lua interpreter, so the .github/muscles/lua-filters/ work without a separate Lua install.

SVG Pipeline

The svg-pipeline.cjs muscle converts SVG diagrams. It checks for these tools in order and uses the first one found:

ToolmacOSWindowsNotes
Inkscapebrew install --cask inkscapewinget install Inkscape.InkscapeFull-featured vector editor, best quality
librsvgbrew install librsvgN/A (use Inkscape or ImageMagick)Lightweight, recommended for CI/automation
ImageMagickbrew install imagemagickwinget install ImageMagick.ImageMagickVersatile but lower SVG quality

Pick one. On macOS, librsvg is the lightest option. On Windows, Inkscape or ImageMagick:

macOS

bash
brew install librsvg

Windows

powershell
winget install ImageMagick.ImageMagick

Shell Enhancements

These make the terminal more productive. Install individually via Homebrew (macOS) or winget (Windows):

ToolmacOSWindowsWhat It Does
Starshipbrew install starshipwinget install Starship.StarshipFast, customizable shell prompt
treebrew install treeBuilt-in (tree command)Directory tree visualization
htopbrew install htopN/A (use Task Manager or btop)Interactive process viewer
batbrew install batwinget install sharkdp.batcat with syntax highlighting
fdbrew install fdwinget install sharkdp.fdFaster find replacement
ripgrepbrew install ripgrepwinget install BurntSushi.ripgrep.MSVCFaster grep replacement
fzfbrew install fzfwinget install junegunn.fzfFuzzy finder for files, history, etc.
jqbrew install jqwinget install jqlang.jqJSON processor for the command line
tldrbrew install tldrnpm install -g tldrSimplified man pages
wgetbrew install wgetwinget install GnuWin32.WgetFile downloader

AI & Containers

ToolmacOSWindowsWhat It Does
Ollamabrew install ollamawinget install Ollama.OllamaRun local AI models (Llama, Mistral, etc.)
Dockerbrew install --cask dockerwinget install Docker.DockerDesktopContainerized development

One-Liner Install

macOS (via Homebrew):

bash
# Core
brew install node git python pandoc librsvg jq

# Shell enhancements
brew install starship tree htop bat fd ripgrep fzf tldr wget

# Optional
brew install ollama
brew install --cask docker

Windows (via winget):

powershell
# Core
winget install OpenJS.NodeJS.LTS Git.Git Python.Python.3.12 JohnMacFarlane.Pandoc ImageMagick.ImageMagick jqlang.jq

# Shell enhancements
winget install Starship.Starship sharkdp.bat sharkdp.fd BurntSushi.ripgrep.MSVC junegunn.fzf

# Optional
winget install Ollama.Ollama Docker.DockerDesktop

Verifying Your Setup

macOS / Linux (bash/zsh):

bash
echo "=== Alex Dev Environment Check ==="
for cmd in node npm git pandoc rsvg-convert jq; do
    if command -v "$cmd" &>/dev/null; then
        echo "✅ $cmd: $(command -v "$cmd")"
    else
        echo "❌ $cmd: NOT FOUND"
    fi
done

Windows (PowerShell):

powershell
Write-Host "=== Alex Dev Environment Check ==="
foreach ($cmd in @('node', 'npm', 'git', 'pandoc', 'magick', 'jq')) {
    if (Get-Command $cmd -ErrorAction SilentlyContinue) {
        Write-Host "✅ $cmd: $((Get-Command $cmd).Source)"
    } else {
        Write-Host "❌ $cmd: NOT FOUND"
    }
}