feat(browser): warn that firecrawl browser is deprecated

MO
3d ago
+52-0

firecrawl browser has been hidden from help and documented as replaced by firecrawl scrape plus firecrawl interact, but running it gave no sign of that. This makes the deprecation visible before the command is removed.

  • Every firecrawl browser invocation, including launch-session, execute, list and close, now prints one line to stderr:

    Warning: `firecrawl browser` is deprecated and will be removed in a future release. Use `firecrawl scrape <url>`, then `firecrawl interact "<prompt>"` or `firecrawl interact -c "<code>"`. See `firecrawl interact --help`.
    
  • Stdout, --json output and exit codes are unchanged, so scripts that read the command's output keep working.

  • The warning is a preAction hook on the browser command, so Commander runs it for the command and every subcommand.

  • cli-argv.test.ts covers the shorthand and a subcommand against the built CLI.

No version bump; it ships with the next release.

Open in Capy


Summary by cubic

Every firecrawl browser invocation now prints a deprecation warning to stderr, pointing users to firecrawl scrape and firecrawl interact as replacements before the command is removed.

  • The warning runs for the browser command and all its subcommands via a preAction hook, and also appears in browser and browser subcommand help output.
  • Stdout, --json output, and exit codes are unchanged, so existing scripts keep working.