Files
openclaw/src/cli/daemon-cli/register.ts
T
2026-02-15 04:44:23 +00:00

20 lines
680 B
TypeScript

import type { Command } from "commander";
import { formatDocsLink } from "../../terminal/links.js";
import { theme } from "../../terminal/theme.js";
import { addGatewayServiceCommands } from "./register-service-commands.js";
export function registerDaemonCli(program: Command) {
const daemon = program
.command("daemon")
.description("Manage the Gateway service (launchd/systemd/schtasks)")
.addHelpText(
"after",
() =>
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/gateway", "docs.openclaw.ai/cli/gateway")}\n`,
);
addGatewayServiceCommands(daemon, {
statusDescription: "Show service install status + probe the Gateway",
});
}