Skip to content

Commit 37c0dab

Browse files
committed
Update README
1 parent dc59083 commit 37c0dab

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,36 @@ chrome-cli
33

44

55
## Overview
6-
chrome-cli is a command line utility for controlling Google Chrome on OS X.
7-
It is a native binary that uses the Scripting Bridge to communicate
8-
with Chrome.
6+
chrome-cli is a command line utility for controlling Google Chrome compatible browsers on OS X.
7+
It is a native binary that uses the Scripting Bridge to communicate with Chrome.
8+
chrome-cli has been tested with the following browsers:
9+
* Chrome
10+
* Chrome Canary
11+
* Chromium
12+
* Brave
13+
* Vivaldi
14+
15+
16+
### Other browsers
17+
By default chrome-cli communicates with Chrome, but you can use it with other browsers by settings
18+
the `CHROME_BUNDLE_IDENTIFIER` environment variable. I.e. to use chrome-cli with Brave you can run the following command:
19+
```bash
20+
CHROME_BUNDLE_IDENTIFIER="com.brave.Browser" chrome-cli list tabs
21+
```
22+
Check the [scripts directory](scripts) for some convenient wrappers.
23+
24+
25+
#### How do I find the bundle identifier?
26+
The following command will print out the bundle identifier for Brave
27+
```bash
28+
mdls -name kMDItemCFBundleIdentifier -raw /Applications/Brave\ Browser.app
29+
```
930

1031
## Installation
1132

1233
#### Homebrew
1334
brew install chrome-cli
1435

15-
#### Manual
16-
- Save the 'chrome-cli' binary to a location in your PATH (i.e. `/usr/local/bin/`)
17-
18-
##### Downloads
19-
- [chrome-cli-darwin-1.6.0-x64](https://github.com/prasmussen/chrome-cli/releases/download/1.6.0/chrome-cli)
20-
- [canary-cli-darwin-1.5.0-x64](https://drive.google.com/uc?id=0B3X9GlR6EmbnTmZ2VmxRdmxRaFU)
21-
- [chromium-cli-darwin-1.5.0-x64](https://drive.google.com/uc?id=0B3X9GlR6EmbnXy1BTF9fQ0ZVN00)
22-
2336

2437
## JavaScript execution
2538
To execute javascript you must first allow it under `View > Developer > Allow JavaScript from Apple Events`.

0 commit comments

Comments
 (0)