Skip to content

nooschain v0.1.0


nooschain / cli/commands/production / runProductionCommand

Function: runProductionCommand()

runProductionCommand(client, config, args, flags): Promise<string | ProductionReadinessReport | ProductionBackupDrillReport | ProductionMonitorReport | { command: string; databaseUrlPresent: boolean; dryRun: true; steps: string[]; wouldWriteDirectory: string; } | { checkedAt: string; checks: ProductionCheck[]; compatibility: { cliVersion: string; migrations: { checked: boolean; extra: string[]; latestApplied: string | null; latestAvailable: string | null; missing: string[]; }; nodeVersion: string | null; snapshotArchiveFormatVersion: number; }; kind: string; ok: boolean; profile: { expected: ProductionProfile; inferred: ProductionProfile; }; } | undefined>

Defined in: cli/commands/production.ts:1132

Dispatches production readiness report and hard preflight commands.

Parameters

client

CliHttpClient

config

CliConfig

args

string[]

flags

Record<string, string | boolean>

Returns

Promise<string | ProductionReadinessReport | ProductionBackupDrillReport | ProductionMonitorReport | { command: string; databaseUrlPresent: boolean; dryRun: true; steps: string[]; wouldWriteDirectory: string; } | { checkedAt: string; checks: ProductionCheck[]; compatibility: { cliVersion: string; migrations: { checked: boolean; extra: string[]; latestApplied: string | null; latestAvailable: string | null; missing: string[]; }; nodeVersion: string | null; snapshotArchiveFormatVersion: number; }; kind: string; ok: boolean; profile: { expected: ProductionProfile; inferred: ProductionProfile; }; } | undefined>

Audience-first NOOSChain documentation.