Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,46 @@ For example, to install version `v0.0.369` to a custom directory:
curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bash
```

After a successful install, the script automatically removes older
direct-install copies that are safe to delete. To skip automatic cleanup:

```bash
curl -fsSL https://gh.io/copilot-install | NO_CLEANUP=true bash
```

Run cleanup without downloading or installing a new binary:

```bash
curl -fsSL https://gh.io/copilot-install | CLEANUP_ONLY=true bash
```

Cleanup-only mode uses the currently selected `copilot` on your `PATH` as the
keep target, so `copilot` must already resolve in your shell.

Preview cleanup decisions without deleting anything:

```bash
curl -fsSL https://gh.io/copilot-install | CLEANUP_ONLY=true DRY_RUN=true VERBOSE=true bash
```

If you are running a local copy of the script instead of piping it, the same
cleanup controls are also available as flags:

```bash
bash install.sh --cleanup-only --dry-run --verbose
```

Cleanup only removes standalone `copilot` binaries that look like
install-script-owned direct installs. It always keeps the currently selected
CLI, skips binaries backing active sessions, and does not delete package-managed
installs or runtime caches such as `copilot-sdk-*`.

Use the owning tool to remove package-managed installs instead:

- npm: `npm uninstall -g @github/copilot`
- Homebrew: `brew uninstall copilot-cli`
- WinGet: `winget uninstall GitHub.Copilot`

Install with [Homebrew](https://formulae.brew.sh/cask/copilot-cli) (macOS and Linux):

```bash
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.35 - 2026-04-21

- `install.sh` now automatically cleans up older direct-install copies of `copilot` after a successful install, preserving the selected CLI, active-session binaries, package-managed installs, and runtime caches; set `NO_CLEANUP=true` to opt out

## 1.0.34 - 2026-04-20

- Rate limit error message now says "session rate limit" instead of "global rate limit"
Expand Down
Loading