Until now, a patch went out to every device on its track at once. You test it, it looks fine on your devices, and then everyone on the track gets it in one go. If something’s wrong with it, all of them hit the problem at the same time.
With Shorebird 1.6.139, you can send a patch to a percentage of your users first. Start with 10%, keep an eye on your crash reports, and raise it when you’re happy. Shorebird decides which devices get it, so you don’t have to change anything in your app.
Why we built this
Back in 2024 we added
tracks,
along with a guide on building percentage rollouts on top of them. It worked,
but you had to do most of the work yourself: give every device a group number,
keep the rollout percentage somewhere in the cloud, turn off auto_update, and
write your own update code. Now Shorebird does that part for you.
Rolling out a patch
Add --rollout when you create the patch:
shorebird patch android --release-version 1.0.0+1 --track stable --rollout 10
This sends the patch to 10% of the devices on stable. If you leave out
--rollout, the patch goes to every device on the track, same as before.
If you test on staging first, pass --rollout when you promote the patch to
stable:
shorebird patches promote --release-version 1.0.0+1 --patch-number 1 --rollout 10
While a rollout is in progress, shorebird patches list and
shorebird patches info show the percentage next to the track, like
stable (10%).
Raising the percentage
When you’re happy with how the patch is doing, raise it:
shorebird patches rollout --release-version 1.0.0+1 --patch-number 1 --percentage 50
Set it to 100 and every device on the track gets the patch. You can only go up, not down, and devices that already have the patch keep it.
If you patched more than one platform at once, each platform gets its own patch
number and its own rollout. shorebird patch prints a
shorebird patches rollout command for each one. Copy it and replace
<percentage> with the number you want.
When something goes wrong
If you’re not sure about the patch yet, leave the percentage where it is. It stays at that share of devices, and everyone else keeps getting the newest patch that’s at 100%.
If the patch is actually broken, roll it back. Devices that installed it remove it the next time they check for patches. Only devices in the rollout ever got it, so at 10% most of your users never saw the problem.
How devices are picked
Every install of your app has an anonymous install identifier, a random value that isn’t built from anything on the device. Shorebird hashes it together with the patch, which gives each install a fixed spot between 0 and 100%. At 10%, the installs below 10% get the patch.
Because the spot is fixed, a device that’s in the rollout stays in it when you
raise the percentage. Each patch gives installs different spots, so it isn’t
always the same users who get new patches first. And the percentage is out of
the devices on that track only: 10% on stable means 10% of the devices on
stable.
Keeping an eye on it
To see how many of a release’s devices are running the patch, run:
shorebird metrics adoption --release-version 1.0.0+1
In the
Shorebird Console,
the rollout strip at the top of Mission Control shows the same for your newest
stable patch during its first week. Its heading names the percentage, like
“Patch #3 to v2.4.0 is rolling out to 25% of stable”. For longer rollouts, or
ones on other tracks, use shorebird metrics adoption.
Both need a release built with Flutter 3.47.4 or newer, since older releases
don’t report which patch a device is running. On an older release,
shorebird metrics adoption shows 0% for the patch even when devices have it.
What you need
- Shorebird 1.6.139 or newer. Run
shorebird upgradeto get it. - A release built with Flutter 3.35.7 or newer. Devices on older releases only get the patch once it reaches 100%.
- Any plan. Timed schedules, covered below, need Enterprise.
- The CLI or the API to set the percentage. The Console shows a patch’s percentage in Mission Control and on the Tracks page, but can’t change it.
If you already built your own rollouts with tracks, nothing breaks. That setup is still useful if you need to reach releases built with a Flutter version older than 3.35.7, or if you need to lower a rollout. Built-in rollouts only go up.
On Enterprise
On a
protected track,
each percentage you set needs approval, so shorebird patches rollout can’t
raise it there. Instead, send a new promote request at the new percentage with
shorebird api. That files a new approval request. The
percentage rollouts guide
has the exact command.
Enterprise teams can also put a rollout on a schedule. With Shorebird 1.6.143 or
newer, --rollout-steps takes each percentage and how long to wait before the
next one, and Shorebird raises the rollout for you:
shorebird patch android --release-version 1.0.0+1 --track stable --rollout-steps 1:4h,10:12h,50:24h,100
Add --pause-weekends if you don’t want weekend hours to count. The weekend is
in UTC unless you pass --timezone, such as --timezone America/New_York. On a
protected track, the whole schedule needs only one approval.
A schedule keeps raising the rollout by itself, so leaving the percentage alone
won’t hold it. To stop it where it is, run shorebird patches rollout with the
percentage the patch is at now. That works on a protected track too, with no
approval, since it doesn’t reach any new devices.
Questions?
The percentage rollouts guide has all the details. If something doesn’t work the way you expect, tell us on Discord or email contact@shorebird.dev.

