CC-2103: Add PowerShell installation script#67
Merged
Conversation
Introduced a new PowerShell script (install.ps1) to automate the installation of the CodeCrafters CLI on Windows. The script handles version detection, architecture checks, downloading, extraction, and installation, while also updating the user's PATH environment variable. Additionally, updated GitHub Actions workflow to include a job for Windows installation.
…install.ps1 Updated the test.yml workflow to dot-source the install.ps1 script before running the codecrafters command. This change ensures that any functions or variables defined in install.ps1 are available in the current session, improving the execution context for the CLI version check.
Modified the logic for updating the user's PATH environment variable in the install.ps1 script. The change ensures that the PATH is set correctly whether or not it already contains a value, improving the installation process for the CodeCrafters CLI on Windows.
rohitpaulk
approved these changes
Jan 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Introduces Windows installation support and validates installs across OSes in CI.
install.ps1to download, extract, install, and PATH-registercodecrafters.exeon Windows (arch detection, version override viaCODECRAFTERS_CLI_VERSION)test.yml: splits install job intoinstall-cli-linuxand newinstall-cli-windows(runsinstall.ps1viapwsh), keepsrun-testsunchangedWritten by Cursor Bugbot for commit b7b2628. This will update automatically on new commits. Configure here.