Quick Start
π Quick Start
Section titled βπ Quick StartβGet started with Bflow in two minutes.
π Prerequisites
Section titled βπ PrerequisitesβBefore you begin, ensure you have:
- Bun (version 1.1 or higher) installed on your machine.
- Google Chrome or Chromium installed locally.
π¦ Step 1: Install Dependencies
Section titled βπ¦ Step 1: Install DependenciesβClone the repository and install dependencies with Bun:
git clone https://github.com/KhBayazidAhmed/browser-automation-cli.gitcd browser-automation-clibun installβ‘ Step 2: Launch the Studio (The Easy Way)
Section titled ββ‘ Step 2: Launch the Studio (The Easy Way)βThe simplest and most user-friendly way to use the CLI is the Interactive Terminal Studio:
bun clibun dev starts every development workspace in the monorepo. Use bun cli when you only want the automation studio.
You will see an interactive prompt:
β β‘ Browser Automation Studioββ What would you like to do?β β π Run a Workflowβ β π΄ Record New Workflowβ β π Run Programmatic Taskβ β π¬ Open Interactive Browser REPLβ β π View Extracted Data & Outputsβ β β ExitUse your arrow keys and press Enter to choose an action.
π΄ Step 3: Record Your First Workflow
Section titled βπ΄ Step 3: Record Your First WorkflowβTo visually record a new automation flow in Chrome:
bun record workflows/my-first-flow.json https://news.ycombinator.com- Chrome will open with the In-Page Floating HUD Toolbar.
- Click on elements, type into search boxes, or press π Extract / π List to extract data.
- Click π Finish (or press
f/Enterin the terminal) to save your workflow toworkflows/my-first-flow.json.
π Step 4: Replay Your Workflow
Section titled βπ Step 4: Replay Your WorkflowβExecute the recorded workflow anytime from the command line:
# Run headless (fast, in the background)bun flow workflows/my-first-flow.json
# Run headed (watch Chrome execute live in a window)bun flow workflows/my-first-flow.json --headedπ οΈ Step 5: Try the Interactive Browser REPL
Section titled βπ οΈ Step 5: Try the Interactive Browser REPLβNeed to inspect a webpage or test CDP commands interactively? Launch the REPL:
bun replcdp> goto https://example.comβ Loaded (210ms)cdp> titleTitle: Example Domaincdp> screenshot output/example.pngβ Saved screenshot (18.4 KB) to output/example.pngcdp> exitπ Whatβs Next?
Section titled βπ Whatβs Next?β- Explore the Interactive Studio Guide for all interactive menu features.
- Learn about the Visual Live Recorder HUD controls and shortcuts.
- Connect Codex or Claude for agent-assisted authoring, then replay the published workflow without the agent.
- Drive a workflow from Google Sheets or another external provider.
- Check the CLI Command Reference for direct CLI flags and command options.