Skip to content

Commit 8316b51

Browse files
zerone0xclaude
andcommitted
fix(cli): allow autoConnect for start
Fixes #1184 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 49eed51 commit 8316b51

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ chrome-devtools navigate_page "https://google.com"
2929
# Take a screenshot and save it to a file
3030
chrome-devtools take_screenshot --filePath screenshot.png
3131

32+
# Start the daemon and auto-connect to an existing Chrome profile
33+
chrome-devtools start --autoConnect
34+
3235
# Stop the background daemon when finished
3336
chrome-devtools stop
3437
```

src/bin/chrome-devtools.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ const startCliOptions = {
4343
...cliOptions,
4444
} as Partial<typeof cliOptions>;
4545

46-
// Not supported in CLI on purpose.
47-
delete startCliOptions.autoConnect;
46+
// autoConnect is supported by the CLI.
4847
// Missing CLI serialization.
4948
delete startCliOptions.viewport;
5049
// CLI is generated based on the default tool definitions. To enable conditional

0 commit comments

Comments
 (0)