Installer script for provisioning Codex CLI dependencies and environment tweaks on Windows (PowerShell), with support for profile configuration and font setup.
- Windows 10 or later
- PowerShell 5.1 or PowerShell 7+
- Administrator privileges optional (required only for system-wide fonts/console defaults and some installs)
Run the installer directly from GitHub (PowerShell prompt):
iwr -UseBasicParsing https://raw.githubusercontent.com/Baphomet480/deploy-codex-crossplatform/main/install-codex.ps1 -OutFile install-codex.ps1
pwsh -File .\install-codex.ps1The script modifies your PowerShell profile to enable completion helpers and may install fonts; review
install-codex.ps1before running if you need to audit changes. For a non-admin run, the script will skip system-wide console defaults and install fonts per-user.
- Clone the repository:
git clone https://github.com/Baphomet480/deploy-codex-crossplatform.git - Inspect or customize
install-codex.ps1 - Execute locally:
pwsh -File install-codex.ps1(orpowershell -File install-codex.ps1)
install-codex.ps1:
-CacheRoot <path>sets the installer cache root.-Minimalinstalls only required components (Codex, VC++ runtime, config) and skips optional tools (Git, GitHub CLI, nano, ripgrep, profile tweaks).
install-codex-only.ps1:
-Forceforces reinstall even if the same version is already installed.-IncludeGitinstalls Git (optional).-IncludeGitHubCliinstalls GitHub CLI (optional).
Update-Codex.ps1:
- Updates existing
codexinstallation or installs it if missing. - Installs to
$env:USERPROFILE\binby default if not found in PATH. - Automatically adds install location to User PATH.
Pull requests are welcome. Please open an issue to discuss significant changes before submitting a PR.
Distributed under the MIT License; see LICENSE if present or include one before publishing.