diff --git a/docs/cli.md b/docs/cli.md index c3025b3c0..d3fc864dd 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -29,6 +29,9 @@ chrome-devtools navigate_page "https://google.com" # Take a screenshot and save it to a file chrome-devtools take_screenshot --filePath screenshot.png +# Start the daemon and auto-connect to an existing Chrome profile +chrome-devtools start --autoConnect + # Stop the background daemon when finished chrome-devtools stop ``` diff --git a/src/bin/chrome-devtools.ts b/src/bin/chrome-devtools.ts index e3aab5f45..32ab66d8a 100644 --- a/src/bin/chrome-devtools.ts +++ b/src/bin/chrome-devtools.ts @@ -43,8 +43,7 @@ const startCliOptions = { ...cliOptions, } as Partial; -// Not supported in CLI on purpose. -delete startCliOptions.autoConnect; +// autoConnect is supported by the CLI. // Missing CLI serialization. delete startCliOptions.viewport; // CLI is generated based on the default tool definitions. To enable conditional