SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

CLI - Let users know if there's a new version available

Open bfops opened this issue 1 year ago • 3 comments

Background

We'd like the CLI to let users know if they'd be able to upgrade.

Definition of Done

  • [ ] When users run any command, try to check if there's an upgrade available on GitHub
    • [ ] Make a short timeout, to avoid hanging the CLI
    • [ ] If the request fails, assume there's no upgrade
    • [ ] If there's an upgrade available, print an informational message to the user before running the subcommand

bfops avatar Oct 09 '24 20:10 bfops

note: this will only be impactful for the release after the one it's included in

bfops avatar Nov 20 '24 21:11 bfops

I would do whatever the gh command does because they have a good cadence for telling the user to upgrade.

jdetter avatar Apr 29 '25 18:04 jdetter

Rationale for making it a P1: More people will upgrade to the new release if we tell them it's available. Otherwise we are losing a bunch of users on previous releases who will just never upgrade because they don't know an update is available. Also from a customer support standpoint we want people to upgrade to get bug fixes ASAP.

jdetter avatar Apr 29 '25 18:04 jdetter