Files
vibemake-pcb-studio/backend/install-codex.sh
T
2026-11-10 19:04:27 +08:00

10 lines
377 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if ! command -v node >/dev/null || ! command -v npm >/dev/null; then
echo 'Install Node.js 20+ and npm to install the pinned Codex CLI.' >&2
exit 1
fi
npm install --prefix .cache/codex-cli --no-save --package-lock=false --no-audit --no-fund @openai/codex@0.166.0
.cache/codex-cli/node_modules/.bin/codex --version