1.1.1 • Published 7 years ago

chrome-cli v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

chrome-cli

Open Google Chrome from the command line.

Note: Only macOS is supported right now.

Installation

npm install -g chrome-cli

Usage

The chrome command launches and passes its arguments directly to Google Chrome.

# Open a new window
chrome

# Open a new "incognito" window
chrome --incognito

# Open a local file
chrome file.html

# Open a URL, incognito
chrome https://google.com --incognito

By default, this assumes that Chrome is /Applications/Google Chrome.app.

To point elsewhere, set the CHROME environment variable to the path of your Chrome installation's app bundle. For example, if you use Chrome Canary, you can add the following to your .bashrc:

export CHROME='/Applications/Google Chrome Canary.app'

Options

Here are some lists of command line arguments supported by Google Chrome: