Back to Docs
Navigation

html

Get the full HTML source of the current page (outerHTML). Truncated at 1 MB.

Usage

$ cdpilot html

Examples

Print the HTML source of the active page

$ npx cdpilot html

Save the HTML to a file

$ npx cdpilot html > page.html