Add tool, distribution, and extension management commands for Morphir CLI#5
Merged
DamianReeves merged 4 commits intomainfrom Dec 23, 2025
Merged
Conversation
- Add tool install, list, update, and uninstall commands - Create ToolRegistry for persisting tool information - Store tool registry in ~/.morphir/tools.json - Update README with tool management documentation Co-authored-by: DamianReeves <957246+DamianReeves@users.noreply.github.com>
- Add DEFAULT_VERSION constant for version management - Change version field to Option<String> for consistency - Update all version handling to use the constant Co-authored-by: DamianReeves <957246+DamianReeves@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create tools for managing morphir distributions and extensions
Add tool management commands for Morphir CLI
Dec 23, 2025
Member
|
@copilot What about the other commands |
Copilot stopped work on behalf of
DamianReeves due to an error
December 23, 2025 22:01
Member
|
@copilot you only implemented the tool commands what about the dist and extension commands |
- Implement morphir dist install/list/update/uninstall commands - Implement morphir extension install/list/update/uninstall commands - Add DistRegistry stored in ~/.morphir/distributions.json - Add ExtensionRegistry stored in ~/.morphir/extensions.json - Update README with dist and extension command documentation - All commands follow same pattern as tool commands Co-authored-by: DamianReeves <957246+DamianReeves@users.noreply.github.com>
Author
I've now implemented both The CLI now provides three complete command groups: Tool Management:
Distribution Management:
Extension Management:
All three follow the same consistent pattern with version pinning, formatted output, and proper error handling. |
Copilot
AI
changed the title
Add tool management commands for Morphir CLI
Add tool, distribution, and extension management commands for Morphir CLI
Dec 23, 2025
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.
Implements complete package management for the Morphir CLI (addressing morphir-dotnet #296), enabling NPM-like management of tools, distributions, and extensions with native Rust performance.
Changes
New Commands
Tool Management
morphir tool install <name> [--version]- Install tools with version pinningmorphir tool list- Display installed tools in formatted tablemorphir tool update <name> [--version]- Update tools to specified or latest versionmorphir tool uninstall <name>- Remove tools from registryDistribution Management
morphir dist install <name> [--version]- Install Morphir distributionsmorphir dist list- Display installed distributions in formatted tablemorphir dist update <name> [--version]- Update distributions to specified or latest versionmorphir dist uninstall <name>- Remove distributions from registryExtension Management
morphir extension install <name> [--version]- Install Morphir extensionsmorphir extension list- Display installed extensions in formatted tablemorphir extension update <name> [--version]- Update extensions to specified or latest versionmorphir extension uninstall <name>- Remove extensions from registryImplementation
~/.morphir/tools.jsonusing serde JSON serialization~/.morphir/distributions.json~/.morphir/extensions.jsoncommands/tool.rsmodule withToolRegistryandToolInfostructscommands/dist.rsmodule withDistRegistryandDistInfostructscommands/extension.rsmodule withExtensionRegistryandExtensionInfostructsOption<String>withDEFAULT_VERSIONconstant for flexibilityAppSessionDependencies Added
Example Usage
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.