#!/bin/sh
# Placeholder for apps/cli/install/install.sh (control-plane repo).
set -eu
REGISTRY="https://registry.codemation.eu/"
command -v node >/dev/null 2>&1 || { echo "Node.js 22 or newer is required." >&2; exit 1; }
major="$(node -p 'process.versions.node.split(".")[0]')"
[ "$major" -ge 22 ] || { echo "Node.js 22 or newer is required (found $major)." >&2; exit 1; }
npm install -g @codemation/cli --registry "$REGISTRY"
