Skip to main content

Variable: cli

readonly optional cli?: { app: boolean; bundler: boolean; compile: boolean; eval: boolean; help: boolean; serve: boolean; testRunner: boolean; tlsCa: boolean; } | undefined

Which CLI subcommands this build carries.

Mirrors the esbuild --define gating of the CLI entry point, so a build's subcommand surface is introspectable the same way its runtime features are. Published by the entry point itself, so it is absent inside a Worker, which has no CLI.