CLI reference for fallow flags. Detect feature flag patterns, environment variable gates, SDK calls, and config-based toggles across your codebase.
Detect feature flag patterns in your codebase. Fallow identifies environment variable flags (process.env.FEATURE_*), SDK calls from common providers (LaunchDarkly, Statsig, Unleash, GrowthBook, Split, PostHog, Vercel Flags, ConfigCat, Flagsmith, Optimizely, Eppo), and config object patterns (opt-in). Reports flag locations, detection confidence, and cross-references with dead code findings.
Use fallow flags --format json for structured output that agents and scripts can parse. Combine with --top N to focus on the most common flags.
CI mode: equivalent to --format sarif --fail-on-issues --quiet
--fail-on-issues
Exit with code 1 if flags are found
--sarif-file <PATH>
Write SARIF output to a file (in addition to --format)
--group-by <MODE>
Group output by owner (CODEOWNERS), directory (first path component), package (workspace package), or section (GitLab CODEOWNERS [Section] headers). See global flags.
Fallow ships with built-in detectors for the common providers and env-var conventions, so most projects need no configuration. If fallow flags reports No feature flags detected but your project does use flags, you are likely on an SDK or env prefix fallow does not recognize by default. Extend detection with the flags section in .fallowrc.json, .fallowrc.jsonc, fallow.toml, or .fallow.toml.When you run fallow flags on full defaults and nothing is found, the CLI lists the built-in env prefixes and SDKs it scanned for, so you can tell a true negative from a missing detector.
Several providers shown above (PostHog, ConfigCat, Vercel Flags) are already built in, so these examples are illustrative. Reach for sdkPatterns when fallow does not recognize your wrapper function or you use an in-house SDK.
The response always includes _meta explanatory metadata (the MCP wrapper enables --explain by default). Returns the same JSON envelope as the CLI.See MCP integration for setup instructions.