# chrome-cli

> Open Google Chrome from the command line

Latest version **1.1.1** (published 2017-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-cli
pnpm add chrome-cli
yarn add chrome-cli
bun add chrome-cli
```

Provides the command `chrome`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-05-03 |
| First published | 2017-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Diogo Campos |
| Maintainers | diogocampos |
| Keywords | chrome, cli, command line, google chrome, macos |

## Links

- npm: https://www.npmjs.com/package/chrome-cli
- Repository: https://github.com/diogocampos/chrome-cli
- Homepage: https://github.com/diogocampos/chrome-cli#readme
- Issues: https://github.com/diogocampos/chrome-cli/issues
- npm.io page: https://npm.io/package/chrome-cli

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2017-05-03
- 1.0.0 — 2017-05-03

## README

# chrome-cli

Open Google Chrome from the command line.

**Note:** Only macOS is supported right now.

## Installation

```sh
npm install -g chrome-cli
```

## Usage

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

```sh
# 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`:

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

## Options

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

* [A list of useful Google Chrome command line switches - gHacks Tech News](https://www.ghacks.net/2013/10/06/list-useful-google-chrome-command-line-switches/)
* [List of Chromium Command Line Switches « Peter Beverloo](http://peter.sh/experiments/chromium-command-line-switches/)

---
_Source: https://npm.io/package/chrome-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
