Files
git.stella-ops.org/docs/features/unchecked/cli/notification-channel-management-cli-commands.md

32 lines
1.9 KiB
Markdown

# Notification Channel Management CLI Commands
## Module
Cli
## Status
IMPLEMENTED
## Description
CLI commands for notification channel management including `stella notify channels list/test`, `stella notify templates list/render`, and `stella notify preferences export/import` for managing notification channels, testing connectivity, previewing templates, and bulk-configuring user notification preferences.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/NotifyCommandGroup.cs` -- `NotifyCommandGroup`
- **Notify Client**: `src/Cli/StellaOps.Cli/Services/NotifyClient.cs` / `INotifyClient.cs` -- notification API client
- **Route consolidation**: Commands consolidated under `stella config notify` via cli-routes.json
- **Commands**:
- `stella config notify channels list` -- list configured notification channels
- `stella config notify channels test <channel>` -- test channel connectivity
- `stella config notify templates list` -- list notification templates
- `stella config notify templates render <template> --event <type>` -- preview rendered template
- `stella config notify preferences export --output <path>` -- export user notification preferences
- `stella config notify preferences import --file <path>` -- import notification preferences
## E2E Test Plan
- [ ] Run `stella config notify channels list` and verify channels displayed (slack, email, webhook, etc.)
- [ ] Run `stella config notify channels test slack` and verify connectivity test result
- [ ] Run `stella config notify templates list` and verify templates listed
- [ ] Run `stella config notify templates render gate-failure --event "gate.failed"` and verify rendered output
- [ ] Run `stella config notify preferences export --output ./prefs.json` and verify export
- [ ] Run `stella config notify preferences import --file ./prefs.json` and verify import
- [ ] Verify deprecated `stella notify channels list` shows deprecation warning