File Name

This indicates the target file that you would like the output rendered as. If you have not specified a format for zshot to transform the content as, the format will be inferred from the file extension.

# Output the contents of https://zshot-cli.com/ as a PDF
zshot --file-name document.pdf https://zshot-cli.com/

Multiple Files

If you have passed multiple URLs to zshot, the argument passed to zshot will be used to infer the pattern for multiple files that will be written. For example:

# Output three files, web-1.png, web-2.png and web-3.png, for the three URLs
zshot --file-name web.png https://zshot-app.com/ https://zshot-cli.com/ https://scaleassembly.com/

Format Override

If you have specified an --output-type, this will override any detected format from the file extension.