chrome-cli
brew install chrome-cli
v1.11.0
MIT
Control Google Chrome from the command-line
168
30-day installs · #2796
445
90-day · #3019
1.9k
365-day · #2872
2.8k
★ GitHub stars · updated 11mo ago
Links
- https://github.com/prasmussen/chrome-cli
- GitHub: prasmussen/chrome-cli
- Brew formula source: Formula/c/chrome-cli.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Control Google Chrome from the command-line",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:22+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "chrome-cli",
"github_default_branch": "master",
"github_last_commit_at": "2025-09-03T19:09:41Z",
"github_readme_excerpt": "# chrome-cli\n\n## Overview\n\nchrome-cli is a command line utility for controlling Google Chrome compatible browsers on OS X.\nIt is a native binary that uses the Scripting Bridge to communicate with Chrome.\nchrome-cli has been tested with the following browsers:\n\n- Chrome\n- Chrome Canary\n- Chromium\n- Brave\n- Vivaldi\n- Edge\n- Arc\n\n### Other browsers\n\nBy default chrome-cli communicates with Chrome, but you can use it with other browsers by settings\nthe `CHROME_BUNDLE_IDENTIFIER` environment variable. I.e. to use chrome-cli with Brave you can run the following command:\n\n```bash\nCHROME_BUNDLE_IDENTIFIER=\"com.brave.Browser\" chrome-cli list tabs\n```\n\nCheck the [scripts directory](scripts) for some convenient wrappers.\n\n#### How do I find the bundle identifier?\n\nThe following command will print out the bundle identifier for Brave\n\n```bash\nmdls -name kMDItemCFBundleIdentifier -raw /Applications/Brave\\ Browser.app\n```\n\n## Installation\n\n#### Homebrew\n\n```bash\nbrew install chrome-cli\n```\n\nThis will install:\n\n- chrome-cli\n- chrome-canary-cli\n- chromium-cli\n- brave-cli\n- vivaldi-cli\n- edge-cli\n- arc-cli\n\n## JavaScript execution and viewing source\n\nTo execute javascript or to view a tab\u0027s source you must first enable `View \u003e Developer \u003e Allow JavaScript from Apple Events`.\nMore details [here](https://www.chromium.org/developers/applescript). Thanks to @kevinfrommelt and @paulp for providing this information.\n\n## Usage\n\n chrome-cli -h (Print help)\n chrome-cli --help (Print help)\n chrome-cli help (Print help)\n chrome-cli list windows (List all windows)\n chrome-cli list tabs (List all tabs)\n chrome-cli list tabs -w \u003cid\u003e (List tabs in specific window)\n chrome-cli list links (List all tabs\u0027 link)\n chrome-cli list links -w \u003cid\u003e (List tabs\u0027 link in specific window)\n chrome-cli info (Print info for active tab)\n chrome-cli info -t \u003cid\u003e (Print info for specific tab)\n chrome-cli open \u003curl\u003e (Open url in new tab)\n chrome-cli open \u003curl\u003e -n (Open url",
"github_repo": "prasmussen/chrome-cli",
"github_stars": 2795,
"github_topics": [],
"homepage": "https://github.com/prasmussen/chrome-cli",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 168,
"installs_365d": 1933,
"installs_90d": 445,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "chrome-cli",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 2796,
"rank_365d": 2872,
"rank_90d": 3019,
"raw_hash": "cbfe8b11fff07751",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/chrome-cli.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.11.0",
"versioned_formulae": [],
"why_use_this": null
}