Skip to content
This repository was archived by the owner on Oct 24, 2026. It is now read-only.

docs: install from shorebird.dev - #753

Merged
AbhishekDoshi26 merged 2 commits into
mainfrom
mc/shorebird-dev-install-url
Oct 22, 2026
Merged

AbhishekDoshi26 merged 2 commits into
mainfrom
mc/shorebird-dev-install-url

Conversation

@easymac

@easymac easymac commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Switches every install command to the short form on our own domain:

curl -fsSL https://shorebird.dev/install.sh | bash
irm https://shorebird.dev/install.ps1 | iex

Merge after shorebirdtech/website#429 is deployed. Until then these URLs return 404.

Those URLs 302 to the same scripts in shorebirdtech/install, so updating a script still needs no deploy. The old raw GitHub URLs keep working for existing CI configs.

  • -L is required: without it curl gets the 302, exits 0 (-f only fails on 400 and above), and bash runs an empty body.
  • --proto '=https' --tlsv1.2 is dropped. The URL is https and the only redirect is ours to GitHub over https; -fsSL is what Homebrew, Bun, Deno and uv publish.
  • irm replaces iwr -UseBasicParsing: it returns the script text directly, and -UseBasicParsing does nothing on PowerShell 7.
  • The get_install_command agent tool in Head.astro piped to sh; it now pipes to bash like the docs.

Also covers public/.well-known/agent-instructions.txt.

@AbhishekDoshi26 AbhishekDoshi26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed, no findings.

  • Every POSIX command is curl -fsSL https://shorebird.dev/install.sh | bash: 15 occurrences, including agent-instructions.txt, Head.astro and the Codemagic YAML. With -L the 302 is followed, and with -f a failure exits non-zero instead of piping an error page into bash.
  • PowerShell uses irm … | iex, which follows redirects. The quotes nest correctly inside the Head.astro string, and switching | sh to | bash matches the script's shebang.
  • No raw.githubusercontent.com/shorebirdtech/install URLs are left in src or public.
  • shorebirdtech/website#429 is deployed: production /install.sh and /install.ps1 return 302, and curl -fsSL gets the real scripts.
  • CI passes (build, spell-check, style-check, vale).

@AbhishekDoshi26
AbhishekDoshi26 merged commit e64f1d2 into main Oct 22, 2026
4 checks passed
@AbhishekDoshi26
AbhishekDoshi26 deleted the mc/shorebird-dev-install-url branch October 22, 2026 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants