Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/cli/src/commands/ops/index.ts
T
2026-07-08 16:15:37 +02:00

27 lines
904 B
TypeScript

/**
* `hivegrid ops` — operator subcommand group.
*
* Children:
* - `doctor` — local environment health-check
* - `migrate-tenant` — tenant migration between named envs (uses tenant snapshot infra)
* - `impersonate` — engineer debug magic-link with audit-event
*
* Refs: docs/improvement-plan/08-mobile-cli-storybook-sdk/cli-ops.md
*/
import { defineCommand } from "citty";
import { opsDoctorCommand } from "./doctor.js";
import { opsImpersonateCommand } from "./impersonate.js";
import { opsMigrateTenantCommand } from "./migrate-tenant.js";
export const opsCommand = defineCommand({
meta: {
name: "ops",
description: "Operator commands: doctor (health), migrate-tenant, impersonate (audit-logged).",
},
subCommands: {
doctor: opsDoctorCommand,
"migrate-tenant": opsMigrateTenantCommand,
impersonate: opsImpersonateCommand,
},
});