zshot/cliDownload

--storage

CLI
--storage
ValuePATH

Seeds the browser from a storage file before the page is requested, and rewrites the file with the storage the render ends with. The file uses Playwright’s storageState format.

  • A path that does not exist starts the render with empty storage.
  • ro:PATH seeds from PATH and leaves it unchanged.
  • The file is rewritten when the render fails or times out, too.
  • A batch of URLs starts each one from the same file and writes storage-1.json, storage-2.json, and so on, beside it.
  • The file is written readable by its owner only.

Under --server or --cdp, the file is a default that is never written, read again for each request or browser context. A request’s with_storage chooses what it starts from:

with_storageStarts fromLinked from the response
absentthe server’s defaultno
truethe server’s default, or empty without oneyes
a storage objectthat objectyes
falsenothingno

Example

Run locally
zshot -f page.png \
  --storage session.json \
  https://zshot-cli.com/example_assets/hello_zshot/