7.6k

native doctor

The native doctor command checks your development environment for issues.

What it checks

CheckDescription
Host platformOperating system and architecture
WebViewWKWebView (macOS) or WebKitGTK (Linux) availability
Manifestapp.json or app.zon validation when a manifest is discovered or passed explicitly
Log directoryWritability of the log output path
CEFCEF distribution presence when Chromium is selected by the app manifest or --web-engine chromium
Signing toolsCode signing tool availability

Usage

# Informational (always exits 0)
native doctor

# Strict mode (exits non-zero on any warning)
native doctor --manifest app.json --strict

# Check CEF setup
native doctor --manifest app.json

Flags

FlagDescription
--strictExit non-zero on any warning
--manifestPath to app.json or app.zon
--web-engineTemporarily override the engine from the app manifest with system or chromium
--cef-dirTemporarily override the CEF distribution path
--cef-auto-installTemporarily allow automatic prepared CEF installation for Chromium checks