brightdata-cli
brightdata/skills
Bright Data CLI(`brightdata` / `bdata`)를 사용하여 웹사이트를 크레이핑하고, 웹 검색을 수행하며, 40개 이상의 플랫폼에서 구조화된 데이터를 추출하고, 프록시 영역을 관리하고, 계정 잔액을 확인하는 방법에 대한 가이드입니다. 사용자가 URL을 스크래핑하거나, Google/Bing/Yandex에서 검색하거나, Amazon/LinkedIn/Instagram/TikTok/YouTube/Reddit 또는 기타 플랫폼에서 데이터를 추출하거나, Bright Data 잔액이나 존을 확인하거나, 터미널을 통해 웹 데이터 수집과 관련된 작업을 수행하고자 할 때마다 이 스킬을 사용하세요. 또한 사용자가 다음을 언급할 때도 트리거됩니다.
...모든 것을 확장하십시오소개 brightdata-cli
Bright Data CLI는 Bright Data의 웹 데이터 플랫폼에 터미널을 통해 직접 접근할 수 있게 해주는 명령줄 도구입니다. 이 도구는 인증, 프록시 관리, 봇 차단 우회, CAPTCHA 해결, 자바스크립트 렌더링을 자동으로 처리함으로써 웹 스크래핑의 복잡성을 해소합니다. 사용자는 OAuth를 통해 한 번만 로그인하면 되며, 이후 모든 작업은 수동 설정이나 API 키 관리 없이 CLI가 원활하게 처리합니다.
이 기능을 통해 다양한 형식(마크다운, HTML, JSON, 스크린샷)으로 모든 URL을 스크래핑하고, Google, Bing, Yandex에서 구조화된 결과로 웹 검색을 수행하며, Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit 등 40개 이상의 플랫폼에서 데이터를 추출할 수 있습니다. 이 CLI는 동기 및 비동기 작업을 모두 지원하고, 특정 국가를 대상으로 한 지리적 타겟 스크래핑을 지원하며, 예산 확인 및 프록시 영역 구성과 같은 계정 관리 기능을 제공합니다. 모든 작업은 'bdata scrape' 또는 'bdata search'와 같은 간단한 명령어를 통해 수행됩니다.
이 도구는 인프라 관리 부담 없이 신뢰할 수 있는 웹 데이터 수집이 필요한 개발자, 데이터 분석가 및 연구원을 위해 설계되었습니다. 경쟁 정보 수집, 콘텐츠 모니터링, SEO 분석, 훈련 데이터 수집 등 어떤 작업이든 Bright Data CLI는 기술적인 복잡성을 처리하면서 직관적인 명령어 인터페이스를 제공합니다. macOS, Linux, Windows에서 모두 작동하며, Node.js 20+만 있으면 되고, 일회성 작업의 경우 npx를 통해 설치 없이도 실행할 수 있습니다.
자주 묻는 질문
Bright Data CLI에서 인증하려면 어떻게 해야 하나요?
'bdata login'을 한 번 실행하여 브라우저에서 OAuth를 통해 인증하십시오. 이렇게 하면 자격 증명이 로컬에 저장되고 필요한 프록시 영역이 자동으로 구성됩니다. 헤드리스 환경의 경우, 'bdata login --device' 또는 'bdata login --api-key
어떤 플랫폼에서 데이터를 추출할 수 있나요?
CLI는 Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit 등 40개 이상의 플랫폼에서 파이프라인을 통해 구조화된 데이터를 추출할 수 있습니다. 'bdata pipelines list'를 실행하여 사용 가능한 모든 플랫폼 유형을 확인하세요.
스크래핑 시 지원되는 출력 형식은 무엇인가요?
스크래핑은 마크다운(기본값), HTML, 구조화된 데이터용 JSON, 스크린샷 이미지 등 다양한 형식을 지원합니다. 'bdata scrape
프록시를 직접 관리하거나 CAPTCHA를 직접 처리해야 하나요?
아니요. CLI는 프록시 관리, 봇 차단 우회, CAPTCHA 해결, 자바스크립트 렌더링을 자동으로 처리합니다. 초기 'bdata login' 명령을 실행하면 모든 기술적인 복잡성은 자동으로 처리됩니다.
특정 지리적 위치에서 스크래핑할 수 있나요?
네. --country 플래그를 사용하여 지역 타겟팅 스크래핑을 지정할 수 있습니다. 예를 들어, 미국 IP 주소에서 스크래핑하려면 'bdata scrape https://amazon.com --country us'를 실행하면 됩니다.
Bright Data CLI
The Bright Data CLI (brightdata or bdata) gives you full access to Bright Data's web data platform from the terminal. It handles authentication, proxy zones, anti-bot bypass, CAPTCHA solving, and JavaScript rendering automatically — the user just needs to log in once.
Installation
If the CLI is not installed yet, guide the user:
macOS / Linux:
curl -fsSL https://cli.brightdata.com/install.sh | bashWindows or manual install (any platform):
npm install -g @brightdata/cli
Without installing (one-off usage):
npx --yes --package @brightdata/cli brightdata <command>
Requires Node.js >= 20. After install, both brightdata and bdata (shorthand) are available.
First-Time Setup
Before anything else, check if the user is authenticated. If they haven't logged in yet, guide them through the one-time setup:
# One-time login — opens the browser for OAuth, then everything is automaticbdata loginThis single command:
- Opens the browser for secure OAuth authentication
- Saves the API key locally (never needs to be entered again)
- Auto-creates required proxy zones (
cli_unlocker,cli_browser) - Sets default configuration
After login, every subsequent command works without any manual intervention.
For headless/SSH environments where no browser is available:
bdata login --device
For direct API key authentication (non-interactive):
bdata login --api-key <key>
To verify setup is complete, run:
bdata config
Command Reference
Read references/commands.md for the full command reference with all flags, options, and examples for every command.
Read references/pipelines.md for the complete list of 40+ pipeline types (Amazon, LinkedIn, Instagram, TikTok, YouTube, Reddit, and more) with their specific parameters.
Quick Command Overview
bdata is the shorthand for brightdata. Both work identically.
| Command | Purpose |
|---|---|
bdata scrape <url> | Scrape any URL as markdown, HTML, JSON, or screenshot |
bdata search "<query>" | Search Google/Bing/Yandex with structured results |
bdata pipelines <type> [params] | Extract structured data from 40+ platforms |
bdata pipelines list | List all 40+ available pipeline types |
bdata status <job-id> | Check async job status |
bdata zones | List proxy zones |
bdata budget | View account balance and costs |
bdata skill add | Install AI agent skills |
bdata skill list | List available skills |
bdata config | View/set configuration |
bdata login | Authenticate with Bright Data |
bdata version | Show CLI version and system info |
How to Use Each Command
Scraping
Scrape any URL with automatic bot bypass, CAPTCHA handling, and JS rendering:
# Default: returns clean markdownbdata scrape https://example.com# Get raw HTMLbdata scrape https://example.com -f html# Get structured JSONbdata scrape https://example.com -f json# Take a screenshotbdata scrape https://example.com -f screenshot -o page.png# Geo-targeted scrape from the USbdata scrape https://amazon.com --country us# Save to filebdata scrape https://example.com -o page.md# Async mode for heavy pagesbdata scrape https://example.com --async
Searching
Search engines with structured JSON output (Google returns parsed organic results, ads, People Also Ask, and related searches):
# Google search with formatted tablebdata search "web scraping best practices"# Get raw JSON for pipingbdata search "typescript tutorials" --json# Search Bingbdata search "bright data pricing" --engine bing# Localized searchbdata search "restaurants berlin" --country de --language de# News searchbdata search "AI regulation" --type news# Extract just URLsbdata search "open source tools" --json | jq -r '.organic[].link'
Pipelines (Structured Data Extraction)
Extract structured data from 40+ platforms. These trigger async jobs that poll until results are ready:
# LinkedIn profilebdata pipelines linkedin_person_profile "https://linkedin.com/in/username"# Amazon productbdata pipelines amazon_product "https://amazon.com/dp/B09V3KXJPB"# Instagram profilebdata pipelines instagram_profiles "https://instagram.com/username"# Amazon searchbdata pipelines amazon_product_search "laptop" "https://amazon.com"# YouTube comments (top 50)bdata pipelines youtube_comments "https://youtube.com/watch?v=..." 50# Google Maps reviews (last 7 days)bdata pipelines google_maps_reviews "https://maps.google.com/..." 7# Output as CSVbdata pipelines amazon_product "https://amazon.com/dp/..." --format csv -o product.csv# List all available pipeline typesbdata pipelines list
Checking Status
For async jobs (from --async scrapes or pipelines):
# Quick status checkbdata status <job-id># Wait until completebdata status <job-id> --wait# With custom timeoutbdata status <job-id> --wait --timeout 300
Budget & Zones
# Quick account balancebdata budget# Detailed balance with pending chargesbdata budget balance# All zones cost/bandwidthbdata budget zones# Specific zone costsbdata budget zone my_zone# Date range filterbdata budget zones --from 2024-01-01T00:00:00 --to 2024-02-01T00:00:00# List all zonesbdata zones# Zone detailsbdata zones info cli_unlocker
Configuration
# View all configbdata config# Set defaultsbdata config set default_zone_unlocker my_zonebdata config set default_format json
Installing AI Agent Skills
# Interactive picker — choose skills and target agentsbdata skill add# Install a specific skillbdata skill add scrape# List available skillsbdata skill list
Output Modes
Every command supports multiple output formats:
| Flag | Effect |
|---|---|
| (none) | Human-readable formatted output with colors |
--json | Compact JSON to stdout |
--pretty | Indented JSON to stdout |
-o <path> | Write to file (format auto-detected from extension) |
When piped (stdout is not a TTY), colors and spinners are automatically disabled.
Chaining Commands
The CLI is pipe-friendly:
# Search → extract first URL → scrape itbdata search "top open source projects" --json \ | jq -r '.organic[0].link' \ | xargs bdata scrape# Scrape and view with markdown readerbdata scrape https://docs.github.com | glow -# Amazon product data to CSVbdata pipelines amazon_product "https://amazon.com/dp/xxx" --format csv > product.csv
Environment Variables
These override stored configuration:
| Variable | Purpose |
|---|---|
BRIGHTDATA_API_KEY | API key (skips login entirely) |
BRIGHTDATA_UNLOCKER_ZONE | Default Web Unlocker zone |
BRIGHTDATA_SERP_ZONE | Default SERP zone |
BRIGHTDATA_POLLING_TIMEOUT | Polling timeout in seconds |
Troubleshooting
| Error | Fix |
|---|---|
| CLI not found | Install with npm i -g @brightdata/cli or curl -fsSL https://cli.brightdata.com/install.sh | bash |
| "No Web Unlocker zone specified" | bdata config set default_zone_unlocker <zone> or re-run bdata login |
| "Invalid or expired API key" | bdata login |
| "Access denied" | Check zone permissions in the Bright Data control panel |
| "Rate limit exceeded" | Wait and retry, or use --async for large jobs |
| Async job timeout | Increase with --timeout 1200 or BRIGHTDATA_POLLING_TIMEOUT=1200 |
Key Design Principles
- One-time auth: After
bdata login, everything is automatic. No tokens to manage, no keys to pass. - Zones auto-created: Login creates
cli_unlockerandcli_browserzones automatically. - Smart defaults: Markdown output, auto-detected formats from file extensions, colors only in TTY.
- Pipe-friendly: JSON output + jq for automation. Colors/spinners disabled in pipes.
- Async support: Heavy jobs can run in background with
--async+status --wait. - npm package:
@brightdata/cli— install globally or use vianpx.
brightdata-cli 설치
스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.
ZIP 다운로드저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.
git clone https://github.com/brightdata/skills/blob/main/skills/brightdata-cli/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
복사





집
