Bright Data CLI
bdata runs a Bright Data job straight from a shell. Reach for it when the agent does the work itself, right now.
Is this the right skill
| The job | Skill |
|---|---|
| Setup, building or testing a scraper, a quick one-off check, run it now from a shell | this skill |
| The same job repeated on a schedule, inside app code | brightdata-sdk |
| An AI app that chooses its own tool at run time | brightdata-mcp |
| First-time setup only: nothing installed yet, or login will not go through | agent-onboarding |
Project setup the agent does for itself stays here. Only the first-time install and a login that will not go through bounce to agent-onboarding.
Package @brightdata/cli.
Before the first command
Install and login belong to agent-onboarding. One free call proves the account works:
bdata zones --json
When a command says a zone is not found
The CLI uses zone names from its config, and it never checks them against the account. A zone "<name>" not found error means the config names a zone this account does not have: a leftover default_zone_serp, or an account made by agent registration, whose zones carry other names. The check and the fix are in references/commands.md.
Pick the command
| Want | Start with |
|---|---|
| A page as markdown, HTML, screenshot or JSON | bdata scrape <url> |
| Search results from Google, Bing or Yandex | bdata search "<query>" |
| Records from a site a pre-built scraper covers (Amazon, LinkedIn, TikTok, ...) | bdata pipelines search "<site>", then info, then run |
| Results ranked against a stated intent | bdata discover "<query>" |
| A scraper for a site no pre-built scraper covers | bdata scraper create, then run |
| To click through a page step by step | bdata browser open <url> |
| Balance and spend | bdata budget |
| Skills or MCP wired into this repo | npx -y skills add brightdata/skills -y; for MCP, bdata add mcp --agent <agent> with --project or --global (limits in references/commands.md) |
Flags are in bdata <command> --help. What the help text leaves out (the key order, pipelines, zones, output) is in references/commands.md.
Rules
- Pass
--json --prettywhenever the output gets parsed. For billing use barebdata budget --json; in CLI 0.4.1budget balance,budget zonesandbudget zoneprint text.-o <path>writes a file: for structured results the extension (.json,.md,.html,.csv) picks the format, whilescrapekeeps the format-fchose, so-o page.htmlneeds-f html. - Never print the API key. The CLI owns the file it sits in.
- There is no schedule command. Recurring runs are set up in the control panel.
Installs: 2.3K | GitHub stars: 272 | First seen: Mar 20, 2026


