Repository navigation
Serve install scripts from ferrus.dev/cli/ - #25
Merged
Merged
Conversation
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ferrus | 9f93975 | Commit Preview URL Branch Preview URL |
Aug 25 2026, 05:16 PM |
Add a `_redirects` file so the site 302s /cli/install.sh and /cli/install.ps1 to the latest GitHub release assets, and point the install snippets at those short URLs. The docs no longer hardcode the release-asset URL, so an org or repo rename only needs a change in `_redirects`. The Windows command also switches from `iwr -useb | iex` to the shorter `irm | iex`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
RomanEmreis
force-pushed
the
install-script-aliases
branch
from
August 25, 2026 17:15
d7b1fae to
9f93975
Compare
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.
What
static/_redirectsso the site 302s the pretty install URLs to the latest GitHub release assets:/cli/install.sh->github.com/ferrus-dev/ferrus/releases/latest/download/install.sh/cli/install.ps1->.../install.ps1src/components/InstallTabs/index.tsx. That component renders on both the homepage and Quickstart, so both pages pick this up.The commands become:
curl -fsSL https://ferrus.dev/cli/install.sh | shWhy
The long release-asset URL was hardcoded in the docs. Behind
ferrus.dev/cli/, a repo or org rename is a one-line change in_redirectsinstead of an edit to every page and every copy of the command users have already pasted into their own READMEs and CI.The
/cli/prefix leaves room for a future desktop build at/desktop/install.sh. Doing that split in the installer instead (prompting for a variant) does not work undercurl | sh— stdin is the pipe, not a terminal.Notes for the reviewer
iwr ... -useb | iexto the shorterirm ... | iex. Same behavior; both follow redirects by default, as doescurl -fsSL.static/to the root ofbuild/, which is whatwranglerserves as assets, so the rules are picked up with no config change.npm run build && npx wrangler dev: wrangler logs "Parsed 2 valid redirect rules", and both paths return 302 with the expectedLocation._redirects; only the Pages-style200proxy status is unsupported, which this does not use.mainafter Update GitHub organization from RomanEmreis to ferrus-dev #24. That PR renamed the org in the same two lines this one replaces outright, so the conflict resolved in favor of the short URLs — the release-asset URL now lives only in_redirects.🤖 Generated with Claude Code