feat: add dashboard command

This commit is contained in:
Peter Steinberger
2026-01-12 19:08:29 +00:00
parent 7dc44b04c1
commit bb7397c636
8 changed files with 276 additions and 21 deletions

View File

@@ -5,6 +5,7 @@ import {
agentsDeleteCommand,
agentsListCommand,
} from "../commands/agents.js";
import { dashboardCommand } from "../commands/dashboard.js";
import {
CONFIGURE_WIZARD_SECTIONS,
configureCommand,
@@ -482,6 +483,21 @@ export function buildProgram() {
}
});
program
.command("dashboard")
.description("Open the Control UI with your current token")
.option("--no-open", "Print URL but do not launch a browser", false)
.action(async (opts) => {
try {
await dashboardCommand(defaultRuntime, {
noOpen: Boolean(opts.noOpen),
});
} catch (err) {
defaultRuntime.error(String(err));
defaultRuntime.exit(1);
}
});
program
.command("reset")
.description("Reset local config/state (keeps the CLI installed)")