1.4 KiB
1.4 KiB
Tenant Context Management CLI
Module
Cli
Status
VERIFIED
Description
Multi-tenant context switching: list available tenants, set/use a default tenant context, show current tenant, and clear the active context.
Implementation Details
- Tenant Store:
src/Cli/StellaOps.Cli/Services/TenantProfileStore.cs-- tenant profile management - Commands:
stella tenants list-- list available tenantsstella tenants use <tenant-id>-- set default tenant contextstella tenants current-- show current active tenantstella tenants clear-- clear active tenant context
E2E Test Plan
- Run
stella tenants listand verify tenant listing - Run
stella tenants use <id>and verify context set - Run
stella tenants currentand verify current tenant shown - Run
stella tenants clearand verify context cleared - Verify subsequent commands use selected tenant context
Verification
- Verified: 2026-02-13T15:30:00Z
- Tier 0 (Source): pass -- all referenced source files exist on disk
- Tier 1 (Build): pass -- module builds cleanly, 87 tests pass in StellaOps.Cli.Auth.Tests
- Tier 2d (Integration): pass -- targeted integration tests confirm behavioral correctness
- Test Project:
src/Cli/__Tests/StellaOps.Cli.Auth.Tests/StellaOps.Cli.Auth.Tests.csproj - Evidence:
docs/qa/feature-checks/runs/cli/tenant-context-management-cli/run-001/tier2-integration-check.json