CLI: fix lazy maintenance command registration (#16374)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 29d7cca674
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
Gustavo Madeira Santana
2026-02-14 13:10:10 -05:00
committed by GitHub
parent 5ba72bd9bf
commit 7d4078c704
3 changed files with 41 additions and 6 deletions

View File

@@ -57,7 +57,15 @@ const coreEntries: CoreCliEntry[] = [
},
},
{
commands: [{ name: "maintenance", description: "Maintenance commands" }],
commands: [
{ name: "doctor", description: "Health checks + quick fixes for the gateway and channels" },
{ name: "dashboard", description: "Open the Control UI with your current token" },
{ name: "reset", description: "Reset local config/state (keeps the CLI installed)" },
{
name: "uninstall",
description: "Uninstall the gateway service + local data (CLI remains)",
},
],
register: async ({ program }) => {
const mod = await import("./register.maintenance.js");
mod.registerMaintenanceCommands(program);