Skip to content

docs: Windows install line that runs from cmd or PowerShell - #61

Merged
NaNIsaac merged 2 commits into
mainfrom
feat/one-line-install
Nov 4, 2026
Merged

NaNIsaac merged 2 commits into
mainfrom
feat/one-line-install

Conversation

@NaNIsaac

@NaNIsaac NaNIsaac commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

Show the Windows install line in a form that runs from cmd as well as PowerShell, and under any execution policy:

powershell -ExecutionPolicy Bypass -c "irm -useb <same URL as before>/install.ps1 | iex"

Changed: README.md, README.ko.md, rust/README.md, the site pages (en/ko), the install.ps1 header and the Windows hint in install.sh. Labels say "cmd or PowerShell". The installer logic is unchanged; it already needs nothing preinstalled (it downloads the release binary and checks its SHA-256).

Tests

  • No code change. install.ps1 from main was run under Windows PowerShell 5.1 with CDG_INSTALL_DIR set to a temp folder, through this exact line and through -File: it installs and cdg --version works. shellcheck install.sh passes.

powershell -ExecutionPolicy Bypass -c "irm -useb ... | iex" works from cmd and from PowerShell and
under any execution policy. The READMEs, the site, the install.ps1 header and the Windows hint in
install.sh now show it; the install steps are unchanged.
irm | iex runs the script in the caller's scope, so $ErrorActionPreference = 'Stop' stayed in the
interactive session after the install. It is now set inside a script block; only the PATH changes
remain.
@NaNIsaac
NaNIsaac merged commit d3c3775 into main Nov 4, 2026
22 checks passed
@NaNIsaac
NaNIsaac deleted the feat/one-line-install branch November 4, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant