feat(cli): add upgrade system foundation (Sprint 1)#1195
Merged
iammukeshm merged 1 commit intodevelopfrom Jan 27, 2026
Merged
Conversation
- Add FshManifest model for tracking project configuration and versions - Generate .fsh/manifest.json during project scaffolding - Add 'fsh version' command to show CLI and project versions - Add 'fsh upgrade' command skeleton with --check and --apply flags Sprint 1 deliverables: - [x] Manifest generation in SolutionGenerator - [x] FshManifest model with JSON serialization - [x] VersionCommand with table and JSON output - [x] UpgradeCommand skeleton with planned functionality preview The manifest tracks: - FSH framework version used - CLI version that created the project - Project options (type, architecture, database, modules) - Building blocks versions for upgrade detection Part of the CLI upgrade system - Sprint 2 will add GitHub API integration for checking available upgrades.
2f29689 to
a9817bd
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.
Summary
This PR adds the foundation for the FSH CLI upgrade system, enabling projects to track their versions and eventually upgrade to newer FSH releases.
Sprint 1 Deliverables
.fsh/manifest.jsoncreated duringfsh newfsh versioncommand - Shows CLI and project version infofsh upgradecommand - Skeleton with--checkand--applyflagsNew Files
Models/FshManifest.csCommands/VersionCommand.csCommands/UpgradeCommand.csManifest Structure
{ "fshVersion": "10.0.0", "createdAt": "2026-01-27T02:50:00Z", "cliVersion": "10.0.0", "options": { "type": "api-blazor", "architecture": "monolith", "database": "postgres", "modules": ["identity", "multitenancy", "auditing"] }, "tracking": { "buildingBlocks": { "Core": "10.0.0", "Web": "10.0.0", "Persistence": "10.0.0", "Infrastructure": "10.0.0" }, "customizations": [] } }Next Steps
fsh add modulecommandTesting