Skip to content

Allow installing prerelease CLI with install.sh#1058

Merged
ellismg merged 1 commit into
mainfrom
ellismg/support-prerelease-for-install-sh
Jan 22, 2026
Merged

Allow installing prerelease CLI with install.sh#1058
ellismg merged 1 commit into
mainfrom
ellismg/support-prerelease-for-install-sh

Conversation

@ellismg

@ellismg ellismg commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Does what it says on the tin.

Copilot AI left a comment

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.

Pull request overview

This PR adds support for installing prerelease versions of the GitHub Copilot CLI via the install.sh script. Users can now set VERSION="prerelease" to install the latest prerelease version.

Changes:

  • Restructured version handling logic to support three cases: latest/empty, prerelease, and specific version
  • Added prerelease detection using git ls-remote to fetch the latest tag
  • Moved the default (latest) case to the first condition for clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.sh
Comment thread install.sh
Comment thread install.sh
@ellismg

ellismg commented Jan 22, 2026

Copy link
Copy Markdown
Contributor Author

Confirmed this works:

matell@Matts-Work-MacBook copilot-agent-runtime % curl -fsSL https://raw.githubusercontent.com/github/copilot-cli/refs/heads/ellismg/support-prerelease-for-install-sh/install.sh | VERSION=prerelease bash
Installing GitHub Copilot CLI...
Latest prerelease version: v0.0.389-1
Downloading from: https://github.com/github/copilot-cli/releases/download/v0.0.389-1/copilot-darwin-arm64.tar.gz
✓ Checksum validated
Notice: Replacing copilot binary found at /Users/matell/.local/bin/copilot.
✓ GitHub Copilot CLI installed to /Users/matell/.local/bin/copilot

Installation complete! Run 'copilot help' to get started.
matell@Matts-Work-MacBook copilot-agent-runtime %

Also validated that without the VERSION=prerelease, we still install latest as before.

@ellismg
ellismg merged commit 220df9d into main Jan 22, 2026
9 checks passed
@ellismg
ellismg deleted the ellismg/support-prerelease-for-install-sh branch January 22, 2026 01:33
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.

5 participants