Loading...
Loading...
Compare original and translation side by side
brightdatabdatabrightdatabdatacurl -fsSL https://cli.brightdata.com/install.sh | bashnpm install -g @brightdata/clinpx --yes --package @brightdata/cli brightdata <command>brightdatabdatacurl -fsSL https://cli.brightdata.com/install.sh | bashnpm install -g @brightdata/clinpx --yes --package @brightdata/cli brightdata <command>brightdatabdataundefinedundefined
This single command:
1. Opens the browser for secure OAuth authentication
2. Saves the API key locally (never needs to be entered again)
3. Auto-creates required proxy zones (`cli_unlocker`, `cli_browser`)
4. Sets default configuration
After login, every subsequent command works without any manual intervention.
For headless/SSH environments where no browser is available:
```bash
bdata login --devicebdata login --api-key <key>bdata config
这一条命令可完成以下操作:
1. 打开浏览器进行安全的OAuth认证
2. 在本地保存API密钥(无需再次手动输入)
3. 自动创建所需的代理区域(`cli_unlocker`、`cli_browser`)
4. 设置默认配置
登录后,后续所有命令均可无需手动干预直接运行。
对于无浏览器的无头/SSH环境:
```bash
bdata login --devicebdata login --api-key <key>bdata configbdatabrightdata| Command | Purpose |
|---|---|
| Scrape any URL as markdown, HTML, JSON, or screenshot |
| Search Google/Bing/Yandex with structured results |
| Extract structured data from 40+ platforms |
| List all 40+ available pipeline types |
| Check async job status |
| List proxy zones |
| View account balance and costs |
| Install AI agent skills |
| List available skills |
| View/set configuration |
| Authenticate with Bright Data |
| Show CLI version and system info |
bdatabrightdata| 命令 | 用途 |
|---|---|
| 以markdown、HTML、JSON或截图形式抓取任意URL |
| 搜索Google/Bing/Yandex并获取结构化结果 |
| 从40+平台提取结构化数据 |
| 列出所有40+可用管道类型 |
| 检查异步任务状态 |
| 列出代理区域 |
| 查看账户余额及消费情况 |
| 安装AI Agent技能 |
| 列出可用技能 |
| 查看/设置配置 |
| 通过Bright Data进行身份认证 |
| 显示CLI版本及系统信息 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined--asyncundefined--asyncundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Flag | Effect |
|---|---|
| (none) | Human-readable formatted output with colors |
| Compact JSON to stdout |
| Indented JSON to stdout |
| Write to file (format auto-detected from extension) |
| 标志 | 效果 |
|---|---|
| (无) | 带颜色的人类可读格式化输出 |
| 紧凑JSON输出到标准输出 |
| 缩进格式的JSON输出到标准输出 |
| 写入文件(格式从文件扩展名自动检测) |
undefinedundefinedundefinedundefined| Variable | Purpose |
|---|---|
| API key (skips login entirely) |
| Default Web Unlocker zone |
| Default SERP zone |
| Polling timeout in seconds |
| 变量 | 用途 |
|---|---|
| API密钥(完全跳过登录步骤) |
| 默认Web Unlocker代理区域 |
| 默认SERP代理区域 |
| 轮询超时时间(秒) |
| Error | Fix |
|---|---|
| CLI not found | Install with |
| "No Web Unlocker zone specified" | |
| "Invalid or expired API key" | |
| "Access denied" | Check zone permissions in the Bright Data control panel |
| "Rate limit exceeded" | Wait and retry, or use |
| Async job timeout | Increase with |
| 错误 | 解决方法 |
|---|---|
| CLI未找到 | 使用 |
| "No Web Unlocker zone specified" | 运行 |
| "Invalid or expired API key" | 运行 |
| "Access denied" | 在Bright Data控制面板中检查代理区域权限 |
| "Rate limit exceeded" | 等待后重试,或对大型任务使用 |
| 异步任务超时 | 使用 |
bdata logincli_unlockercli_browser--asyncstatus --wait@brightdata/clinpxbdata logincli_unlockercli_browser--asyncstatus --wait@brightdata/clinpx