Back to Docs
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

NameRequiredDescription
index-or-idoptionalTab index number or CDP target ID. Omit to close the active tab.

Examples

Close the current tab

$ npx cdpilot close-tab

Close tab at index 2

$ npx cdpilot close-tab 2