Skip to content

nooschain v0.1.0


nooschain / cli/commands/doctor / runDoctorCommand

Function: runDoctorCommand()

runDoctorCommand(client, config, flags?): Promise<{ checks: DoctorCheck[]; config: { baseUrl: string; databaseUrlPresent: boolean; dotenv: { error: string | null; exists: boolean; keyCount: number; keys: string[]; loaded: boolean; path: string; }; hashicorpGoRaftBinaryPathPresent: boolean; operatorAuthConfigured: boolean; sources: { baseUrl: CliConfigValueSource; caPath: CliConfigValueSource; certPath: CliConfigValueSource; databaseUrl: CliConfigValueSource; hashicorpGoRaftBinaryPath: CliConfigValueSource; keyPath: CliConfigValueSource; operatorAuth: CliConfigValueSource; }; tls: { caConfigured: boolean; certConfigured: boolean; https: boolean; keyConfigured: boolean; rejectUnauthorized: boolean; }; }; diagnostics?: Record<string, unknown>; fixPlan?: object[]; ok: boolean; }>

Defined in: cli/commands/doctor.ts:63

Runs CLI and node readiness checks.

The command reports configuration value sources without printing secret values. When --deep or --fix-plan is present and an operator token is configured, it also includes read-only node diagnostics.

Parameters

client

CliHttpClient

config

CliConfig

flags?

Record<string, string | boolean> = {}

Returns

Promise<{ checks: DoctorCheck[]; config: { baseUrl: string; databaseUrlPresent: boolean; dotenv: { error: string | null; exists: boolean; keyCount: number; keys: string[]; loaded: boolean; path: string; }; hashicorpGoRaftBinaryPathPresent: boolean; operatorAuthConfigured: boolean; sources: { baseUrl: CliConfigValueSource; caPath: CliConfigValueSource; certPath: CliConfigValueSource; databaseUrl: CliConfigValueSource; hashicorpGoRaftBinaryPath: CliConfigValueSource; keyPath: CliConfigValueSource; operatorAuth: CliConfigValueSource; }; tls: { caConfigured: boolean; certConfigured: boolean; https: boolean; keyConfigured: boolean; rejectUnauthorized: boolean; }; }; diagnostics?: Record<string, unknown>; fixPlan?: object[]; ok: boolean; }>

Audience-first NOOSChain documentation.