Skip to content

Class: CliService

Cross-platform lifecycle manager for one system-tray user service.

new CliService(definition, options?): CliService

Create a lifecycle manager from a serializable definition.

CliServiceDefinition

Product-owned service metadata, process, and menu.

CliServiceRuntimeOptions = {}

Host runtime overrides.

CliService

readonly definition: CliServiceDefinition

install(options?): Promise<void>

Install the login entry and optionally start the service.

boolean = ...

string = ...

boolean = ...

Promise<void>

CliServiceLifecycle.install


logPath(): string

Return the managed service process log path.

string

CliServiceLifecycle.logPath


restart(): Promise<void>

Stop and start the installed service.

Promise<void>

CliServiceLifecycle.restart


start(): Promise<void>

Start the installed service when it is not already running.

Promise<void>

CliServiceLifecycle.start


status(): Promise<CliServiceStatus>

Read the current installation and process state.

Promise<CliServiceStatus>

CliServiceLifecycle.status


stop(): Promise<void>

Stop the running tray host and its managed child process.

Promise<void>

CliServiceLifecycle.stop


uninstall(): Promise<void>

Stop the service and remove its login entry and package-owned state.

Promise<void>

CliServiceLifecycle.uninstall