# Allow specifying ZED_VERSION with fallback to latest in \`install.sh\` \(\#45522\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e6d87976bb65e59a06dea868efb8585209f309e9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e6d87976bb65e59a06dea868efb8585209f309e9

Requested commit: e6d87976bb65e59a06dea868efb8585209f309e9

Commit: e6d87976bb65e59a06dea868efb8585209f309e9

Tree: 69aeb026e32d0860c1e7fd98c8b26805c0373325

Author: Winner Edwin

Committer: GitHub

## Message

```
Allow specifying ZED_VERSION with fallback to latest in `install.sh` (#45522)

This PR updates the Linux install script to support installing a
specific version of Zed via the
ZED_VERSION environment variable.

- If ZED_VERSION is set, that version will be downloaded.
- If ZED_VERSION is not set, the script defaults to the latest stable
version, preserving
  existing behavior.
- Works for both Linux and macOS installs.
- Maintains compatibility with ZED_CHANNEL for preview builds.

This enhancement allows users to:
- Pin a specific Zed version for reproducible setups or CI workflows.
- Easily install older or known-good versions without manually
downloading release assets.

Usage examples:
- Install latest stable (default):
  curl -f https://zed.dev/install.sh | sh
- Install specific version:
  curl -f https://zed.dev/install.sh | ZED_VERSION=0.216.0 sh
  
  Use this — it’s correct, concise, and clearly user-facing:

Release Notes

* **Added:** Support for installing a specific Zed version via the
`ZED_VERSION` environment variable in the install script (defaults to
`latest` when unset).
```

## Parents

- [7c98f1732edc04458b8a96221d956fb8c50c13f0](https://git.cafe/gitcafe/zed/commit/7c98f1732edc04458b8a96221d956fb8c50c13f0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e6d87976bb65e59a06dea868efb8585209f309e9?format=markdown)
