You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(cli): clarify --output json behavior when no extraction strategy is provided #2334
Running crawl4ai CLI with -o json without specifying an extraction strategy (--extractor / JsonCssExtractionStrategy) yields raw unparsed HTML or empty JSON payloads depending on the depth level.
Suggested Improvement
Add a note in CLI docs or command help indicating that structured -o json export expects an extraction schema/strategy to be configured, otherwise defaulting to markdown/HTML output with a helpful warning.
Activity
docs(cli): clarify that --output json requires an extraction strategy…
SohamKukreti commentedon Oct 12, 2026
Thanks for reporting this @ege-arhan
There are 3 PRs targeting this issue, One targets fixes the help test, one fixes the documentation and one fixes the code:
-o jsonhas no extraction strategy #2362 (code fix):-o jsonwithout an extraction strategy (-jor-e) now stops before the crawl starts, with a clear error:-o jsonexample incrwl examples, and removes thejsonchoice from the profile crawl menu.--outputhelp in the CLI.-o jsonexamples.All three apply cleanly and can be merged together once the review on the 2 PRs have been addressed.