Back to Docs
Navigation

shot

Take a full-page screenshot and save it as PNG.

Usage

$ cdpilot shot [<output-path>]

Arguments

NameRequiredDescription
output-pathoptionalFile path for the screenshot. Defaults to ~/.cdpilot/screenshots/screenshot.png

Examples

Take a screenshot with the default file name

$ npx cdpilot shot

Save the screenshot to a custom path

$ npx cdpilot shot /tmp/mypage.png