Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add `serverpod upgrade` command to sync first-party package versions with CLI version

Aperta Adatta ai principianti
#3,491 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
60/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
cli
Ambito
cli

Direzione di ricerca

Individua le definizioni dei comandi CLI nel repository Serverpod, probabilmente in una directory tool o cli, e studia i comandi esistenti come serverpod generate per capirne la struttura. Implementa serverpod upgrade per esaminare i file pubspec.yaml, aggiornare le versioni dei pacchetti Serverpod di prima parte in modo che corrispondano alla versione della CLI, aggiungere un'opzione --dry-run ed eseguire dart pub get in seguito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: cli enhancement stake: onboarding
Problem to Solve

Reducing friction after updating the cli - when a user updates the cli they need to also bump the version of every first party project.

Its very easy for the user to forget to run dart pub get and end up with a state where everything "looks" correct but is in fact broken see #3505

Keeping first-party Serverpod package versions in sync across a project is manual and error-prone. This is especially important when serverpod generate depends on version compatibility between generated code and the CLI tool (see #3489). Developers may unintentionally run outdated versions, leading to subtle bugs or incompatibilities.

Proposal

Introduce a serverpod upgrade command in the CLI that:

  • Scans all pubspec.yaml files in the project.
  • Updates all first-party Serverpod package versions (e.g., serverpod, serverpod_flutter, serverpod_auth) to match the current CLI version.
  • Optionally supports a --dry-run flag to show planned changes without applying them.
  • Runs dart pub get after updating to ensure dependencies are fetched.
Use Case

A developer upgrades the Serverpod CLI to version 2.6.3.
By running serverpod upgrade, all first-party dependencies across backend and Flutter clients are updated to 2.6.3, ensuring compatibility and avoiding version drift.

Alternatives
  • Manually update pubspec.yaml files on each update
Additional context

Related to issue #3489 ("Ensure serverpod generate checks pubspec against CLI version and handles dependency bounds tightly").

How experienced are you with this library?

Expert - Experienced and comfortable with using this library in complex projects

Are you interested in working on a PR for this?
  • I want to work on this
Lingua principale
Dart
Stelle
3.3k
Fork
382
Merge medio
2g 7h
PR unite (30g)
58

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di serverpod/serverpod

Tutte le issue di serverpod/serverpod

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.