Files
git.stella-ops.org/docs/features/checked/cli/tenant-context-management-cli.md
2026-02-14 09:11:48 +02:00

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 tenants
    • stella tenants use <tenant-id> -- set default tenant context
    • stella tenants current -- show current active tenant
    • stella tenants clear -- clear active tenant context

E2E Test Plan

  • Run stella tenants list and verify tenant listing
  • Run stella tenants use <id> and verify context set
  • Run stella tenants current and verify current tenant shown
  • Run stella tenants clear and 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