chrome-cli

1.1.1 • Public • Published

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:

Package Sidebar

Install

npm i chrome-cli

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • diogocampos