Tabs & Sessions
close-tab
Close a tab by index or ID. Closes the active tab if no argument is provided.
Usage
$ cdpilot close-tab [<index-or-id>]Arguments
| Name | Required | Description |
|---|---|---|
index-or-id | optional | Tab index number or CDP target ID. Omit to close the active tab. |
Examples
Close the current tab
$ npx cdpilot close-tabClose tab at index 2
$ npx cdpilot close-tab 2