Command line
exo shot is the command-line client of shots. It sends the request to the service, waits for the run, and writes the images to files. No browser starts on your machine.
exo shot <product> <path> [--theme light|dark|both] [--width 390,1440] [--full] [--signed]
[--wait-for <selector>] [--png] [--out <dir>]
| Option | Effect |
|---|---|
--theme | dark (default), light or both. |
--width | Comma-separated widths. Default 1440. |
--full | Full page instead of the first screen. |
--signed | Shoot as the service's signed-in account. |
--wait-for | A CSS selector to wait for before the shot. |
--png | Write PNG instead of WebP. |
--out | Directory for the files. Default: the current directory. |
Files are named <product>-<page>-<width>-<theme>.webp, and the command prints their paths.
exo shot exointel / --theme both --width 390,1440 --out ./shots
Other forms#
| Command | Does |
|---|---|
exo shot url <https://host/path> | Shoots a full address on a registered host. Same options. |
exo shot set <name> [--out <dir>] | Re-shoots a set saved in the service and writes its files. |
exo shot pull <product> --to <dir> [--set <name>] | Copies the newest set of a product from the service. |
Exit codes#
0: shot taken.1: the run failed. The error code is printed on stderr. See Queue and errors.2: wrong usage.
Access#
The command authenticates to the service with a key held on the machine where it is installed. It is meant for the operator's own host and for sessions running there. Other people use the web app or the MCP tools. See Access and signed shots.