2023-04-06 12:23:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: CLI.(constructor)
|
|
|
|
---
|
|
|
|
|
|
|
|
# CLI.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `CLI` class
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class CLI {
|
2023-11-23 08:51:37 +00:00
|
|
|
constructor(
|
|
|
|
opts?:
|
|
|
|
| string
|
|
|
|
| {
|
|
|
|
cachePath?: string;
|
|
|
|
scriptName?: string;
|
|
|
|
prefixCommand?: {
|
|
|
|
cmd: string;
|
|
|
|
description: string;
|
|
|
|
};
|
|
|
|
allowCachePathOverride?: boolean;
|
|
|
|
pinnedBrowsers?: Partial<{
|
|
|
|
[key in Browser]: string;
|
|
|
|
}>;
|
|
|
|
},
|
|
|
|
rl?: readline.Interface
|
|
|
|
);
|
2023-04-06 12:23:10 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
|
|
|
|
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
opts
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
string \| { cachePath?: string; scriptName?: string; prefixCommand?: { cmd: string; description: string; }; allowCachePathOverride?: boolean; pinnedBrowsers?: Partial<{ \[key in [Browser](./browsers.browser.md)\]: string; }>; }
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
_(Optional)_
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
rl
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
readline.Interface
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
_(Optional)_
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|