# compare

## Usage

```bash
bdy visual compare [options]
```

## Options

| **Option** | **Description** |
| :--- | :--- |
| `--urls <urls>` | Urls to compare (comma separated list, e.g., |
| `--sitemap <sitemap>` | Url from which sitemap will be gathered (e.g., |
| `--sitemap` | "https://example.com") |
| `--urlsFile <urlsFile>` | File with urls to compare (e.g., --urlsFile "urls.txt") |
| `--dryRun` | Run command without sending urls list to Buddy |
| `--follow` | Scrape all subviews of the page (default: false) |
| `--respectRobots` | Respect robots.txt (default: false) |
| `--ignoreUrls <ignoreUrls...>` | Ignore urls matching the regex pattern (e.g., |
| `--ignoreUrls` | "https://example.com/.*") |
| `--ignore <ignores...>` | Ignore elements matching selectors while comparing (format: [scope::]type=value, e.g., |
| `--ignore` | "CSS=.ad-banner" "XPATH=//div[@id='popup']" "example.com::CSS=.cookie-notice") |
| `--cookie <cookies...>` | Set cookies used when visiting the urls (format: [scope::]cookie_value, e.g., --cookie "session=abc123" "example.com::auth=token123; Path=/; Secure; HttpOnly") |
| `--header <headers...>` | Set HTTP headers used when visiting the urls (format: [scope::]name=value, e.g., --header "Authorization=Bearer token" "example.com::Accept=application/json") |
| `--delay <delays...>` | Add delay in milliseconds before taking screenshot (1-60000, format: [scope::]milliseconds, e.g., --delay "1000" "example.com::2000") |
| `--waitFor <waitFors...>` | Wait for elements to appear before taking screenshot (format: [scope::]type=value, e.g., |
| `--waitFor` | "CSS=#content" "example.com::XPATH=//div[@class='loaded']") |
| `-h, --help` | display help for command |


---
Original source: https://buddy.works/docs/cli/visual/compare