Skip to content

docs: update README.md to mention curl-based installer#24106

Merged
bolinfest merged 1 commit into
mainfrom
pr24106
May 22, 2026
Merged

docs: update README.md to mention curl-based installer#24106
bolinfest merged 1 commit into
mainfrom
pr24106

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented May 22, 2026

Now that users can install via curl (or irm), we should tell them about it so they no longer need to use npm!

Note that on one Windows machine I tested on, when I ran:

irm https://chatgpt.com/codex/install.ps1 | iex

I got this error:

iex : The property 'OSArchitecture' cannot be found on this object. Verify that the property exists.
At line:1 char:45
+ irm https://chatgpt.com/codex/install.ps1 | iex
+                                             ~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-Expression], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict,Microsoft.PowerShell.Commands.InvokeExpressionCommand

so we'll recommend the following that works from both cmd.exe and PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

This PR makes a slight update to codex-rs/tui/src/update_action.rs to match.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26604e528e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Outdated
Run the following in PowerShell on Windows to install Codex CLI:

```
irm https://chatgpt.com/codex/install.ps1 | pwsh -NoProfile -ExecutionPolicy Bypass -Command -
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid requiring pwsh in Windows install command

This line says to run the command in PowerShell but then pipes the script to pwsh, which is only available when PowerShell 7 is installed; on many Windows setups that only have Windows PowerShell (powershell.exe), the command fails with pwsh not found and the installer cannot run. Because this README section is the primary quickstart path, the instruction should execute in the current shell (for example via iex) or explicitly call powershell instead of requiring a separate executable.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give me a concrete alternative? The PR body describes the error I ran into with iex.

@bolinfest bolinfest enabled auto-merge (squash) May 22, 2026 18:38
@bolinfest bolinfest merged commit 75b7e06 into main May 22, 2026
46 checks passed
@bolinfest bolinfest deleted the pr24106 branch May 22, 2026 18:39
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants