Files
git.stella-ops.org/docs/features/unchecked/cli/cli-config-command-hub.md

41 lines
2.3 KiB
Markdown

# CLI Config Command Hub (list/show/set/export/import)
## Module
Cli
## Status
IMPLEMENTED
## Description
Extended `stella config` command with list/show/set/export/import subcommands, consolidating notify/feeds/integrations/registry/sources/signals under the config umbrella.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/ConfigCommandGroup.cs` -- `ConfigCommandGroup` (internal static class)
- **Config Catalog**: `src/Cli/StellaOps.Cli/Commands/ConfigCatalog.cs` -- catalog of all configuration items
- **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/CommandHandlers.Config.cs` -- `CommandHandlers` partial with config handlers
- **Sprint**: SPRINT_20260118_011_CLI_settings_consolidation
- **Commands**:
- `stella config list` -- list all configuration categories
- `stella config show <key>` -- show a specific configuration value
- `stella config set <key> <value>` -- set a configuration value
- `stella config export --output <path>` -- export configuration to file
- `stella config import --file <path>` -- import configuration from file
- `stella config notify *` -- notification configuration (channels, templates)
- `stella config feeds *` -- advisory feed configuration
- `stella config integrations *` -- integration configuration
- `stella config registry *` -- container registry configuration
- `stella config sources *` -- advisory source configuration
- `stella config signals *` -- signal configuration
- **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/Integration/SettingsConsolidationTests.cs`
## E2E Test Plan
- [ ] Run `stella config list` and verify all configuration categories shown (notify, feeds, integrations, registry, sources, signals)
- [ ] Run `stella config show <key>` and verify specific config value displayed
- [ ] Run `stella config set <key> <value>` and verify value persisted
- [ ] Run `stella config export --output ./config.yaml` and verify configuration exported
- [ ] Run `stella config import --file ./config.yaml` and verify configuration imported
- [ ] Run `stella config notify channels list` and verify notification channels listed
- [ ] Run `stella config feeds list` and verify feed configuration listed
- [ ] Run `stella config integrations list` and verify integrations listed
- [ ] Verify old paths (e.g., `stella notify`) still work with deprecation warnings