10 lines
377 B
Bash
Executable File
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
|