30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
# Stella Admin CLI Command Group
|
|
|
|
## Module
|
|
Cli
|
|
|
|
## Status
|
|
IMPLEMENTED
|
|
|
|
## Description
|
|
Consolidated `stella admin` CLI command group providing administrative operations for policy management, user administration, feed management, and system diagnostics. Replaces previously scattered admin operations.
|
|
|
|
## Implementation Details
|
|
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/Admin/AdminCommandGroup.cs` -- `AdminCommandGroup` (internal static class)
|
|
- **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/Admin/AdminCommandHandlers.cs` -- `AdminCommandHandlers`
|
|
- **Backend Operations**: `src/Cli/StellaOps.Cli/Services/BackendOperationsClient.cs` / `IBackendOperationsClient.cs`
|
|
- **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/Services/BackendOperationsClientTests.cs`
|
|
- **Commands**:
|
|
- `stella admin users list` -- list users
|
|
- `stella admin users create` -- create a user
|
|
- `stella admin policy list` -- list policies (admin view)
|
|
- `stella admin feeds list` -- list advisory feeds (deprecated, use config feeds)
|
|
- `stella admin diagnostics` -- system diagnostics
|
|
|
|
## E2E Test Plan
|
|
- [ ] Run `stella admin users list` and verify user listing
|
|
- [ ] Run `stella admin users create --name <user>` and verify user creation
|
|
- [ ] Run `stella admin policy list` and verify admin policy view
|
|
- [ ] Run `stella admin diagnostics` and verify system diagnostics
|
|
- [ ] Verify admin commands require admin role authorization
|