Skip to content

docs(cli): clarify --output json behavior when no extraction strategy is provided #2334

Open

Description

@ege-arhan

Problem

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

  1. added a commit that references this issue on Oct 12, 2026
    36cea05
  2. added
    🐞 BugSomething isn't working
    ⚙️ In-progressIssues, Features requests that are in Progress
    and removed on Oct 12, 2026
  3. SohamKukreti commented on Oct 12, 2026

    @SohamKukreti
    Collaborator

    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:

    All three apply cleanly and can be merged together once the review on the 2 PRs have been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚙️ In-progressIssues, Features requests that are in Progress🐞 BugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions