2024-03-25 13:03:57 +00:00
---
sidebar_label: BrowserLaunchArgumentOptions
---
# BrowserLaunchArgumentOptions interface
Launcher options that only apply to Chrome.
#### Signature:
```typescript
export interface BrowserLaunchArgumentOptions
```
## Properties
< table > < thead > < tr > < th >
Property
< / th > < th >
Modifiers
< / th > < th >
Type
< / th > < th >
Description
< / th > < th >
Default
< / th > < / tr > < / thead >
< tbody > < tr > < td >
2024-04-11 16:51:07 +00:00
< span id = "args" > args< / span >
2024-03-25 13:03:57 +00:00
< / td > < td >
`optional`
< / td > < td >
string\[\]
< / td > < td >
Additional command line arguments to pass to the browser instance.
< / td > < td >
< / td > < / tr >
< tr > < td >
2024-04-11 16:51:07 +00:00
< span id = "debuggingport" > debuggingPort< / span >
2024-03-25 13:03:57 +00:00
< / td > < td >
`optional`
< / td > < td >
number
< / td > < td >
Specify the debugging port number to use
< / td > < td >
< / td > < / tr >
< tr > < td >
2024-04-11 16:51:07 +00:00
< span id = "devtools" > devtools< / span >
2024-03-25 13:03:57 +00:00
< / td > < td >
`optional`
< / td > < td >
boolean
< / td > < td >
Whether to auto-open a DevTools panel for each tab. If this is set to `true` , then `headless` will be forced to `false` .
< / td > < td >
`false`
< / td > < / tr >
< tr > < td >
2024-04-11 16:51:07 +00:00
< span id = "headless" > headless< / span >
2024-03-25 13:03:57 +00:00
< / td > < td >
`optional`
< / td > < td >
boolean \| 'shell'
< / td > < td >
Whether to run the browser in headless mode.
2024-05-06 07:34:02 +00:00
**Remarks:**
- `true` launches the browser in the [new headless ](https://developer.chrome.com/articles/new-headless/ ) mode.
- `'shell'` launches [shell ](https://developer.chrome.com/blog/chrome-headless-shell ) known as the old headless mode.
2024-03-25 13:03:57 +00:00
< / td > < td >
`true`
< / td > < / tr >
< tr > < td >
2024-04-11 16:51:07 +00:00
< span id = "userdatadir" > userDataDir< / span >
2024-03-25 13:03:57 +00:00
< / td > < td >
`optional`
< / td > < td >
string
< / td > < td >
Path to a user data directory. [see the Chromium docs ](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/user_data_dir.md ) for more info.
< / td > < td >
< / td > < / tr >
< / tbody > < / table >