Back to Docs
Navigation

pdf

Save the current page as a PDF file.

Usage

$ cdpilot pdf [<output-path>]

Arguments

NameRequiredDescription
output-pathoptionalFile path for the PDF. Auto-generated if omitted.

Examples

Export the current page to PDF

$ npx cdpilot pdf

Save PDF to a specific path

$ npx cdpilot pdf /tmp/report.pdf