Skip to content

Command Cheat-Sheet

Terminal window
# ═══════════════════════════════════════════════════════════════
# CORE-X COMMAND CHEAT-SHEET
# ═══════════════════════════════════════════════════════════════
# ── Launcher ──────────────────────────────────────────────────
cd ~/core-x-kbllr_0
./launch-core-x.sh # Start standard stack
./launch-core-x.sh --with-image-lane # Start full stack
./launch-core-x.sh --no-mlx # Skip MLX (if already running)
./launch-core-x.sh --stop # Stop everything
./launch-core-x.sh --status # Show status
# ── MLX Services (direct) ────────────────────────────────────
cd mlx-services
./start-all.sh --only gateway # Gateway only
./start-all.sh --profile minimal # Core tier
./start-all.sh --profile standard # Standard tier
# ── Event Bus ─────────────────────────────────────────────────
python core-x/scripts/run_event_bus.py --host 127.0.0.1 --port 8085
# ── UI Dev ────────────────────────────────────────────────────
cd core-x/ui && npm run dev # Vite dev on :5200
cd core-x/ui && npm run build # Production build
# ── CLI ───────────────────────────────────────────────────────
pip install -e "core-x/[cli]" # Install CLI
corex # Interactive menu
corex chat # Direct chat
corex rag search # RAG search
corex services # Service health
# ── corex-cli-v2 (Video Analysis) ────────────────────────────
cd corex-cli-v2 && source .venv/bin/activate
corex video analyze -i /path/to/video.mp4 -o ./output
corex models list
# ── corex-disk-study (Disk Cleanup) ─────────────────────────
cd ~/corex-disk-study && source .venv/bin/activate
corex disk study --path ~ --export ./var/reports/disk-study/
corex disk plan --export ./var/reports/disk-study/
corex disk apply --plan <PATH> --dry-run
# ── Pipelines ─────────────────────────────────────────────────
python core-x/pipelines/run_all.py # All pipelines
python core-x/pipelines/run_all.py --local # Local only (no RAG)
python core-x/scripts/run_flow.py <name> # Single flow
# ── Validation ────────────────────────────────────────────────
python core-x/scripts/validate-ecosystem.py
python model-zoo/scripts/validate_registry.py
python scripts/generate-registries.py
# ── Health Checks ─────────────────────────────────────────────
curl http://localhost:8090/health # Gateway
curl http://localhost:8091/health # LLM
curl http://localhost:8092/health # RAG
curl http://localhost:8085/health # Event Bus
curl http://localhost:8093/health # Audio
curl http://localhost:8094/health # Vision
curl http://localhost:8095/health # Embed
curl http://localhost:8096/health # SAiD
curl http://localhost:8083/health # MFlux
curl http://localhost:8084/health # Video
# ── Smoke Tests ───────────────────────────────────────────────
bash scripts/test_ecosystem_flow.sh # Full ecosystem smoke
PYTHONPATH=core-x python -c "from core_x.cli.ui.theme import style; print('OK')"
# ── Troubleshooting ───────────────────────────────────────────
./launch-core-x.sh --stop # Graceful stop (try first)
lsof -i :8090 # Who's on this port?
kill $(lsof -ti :8090) # Graceful kill (SIGTERM)
kill -9 $(lsof -ti :8090) # Last resort (SIGKILL)
cat .core-x-logs/core-x.log # Launcher logs
cat .core-x-logs/event-bus.log # Event bus logs
cat .core-x-logs/mlx-services.log # MLX services logs