---
title: "Simon Willison on X: \"TIL Google Chrome has a --headless optio..."
description: "!https://twitter.com/simonw/status/1772043579231445366"
date: 2024-03-25
published: true
tags:
  - dev
  - thought
  - webdev
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://twitter.com/simonw/status/1772043579231445366" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://pbs.twimg.com/media/GJeQPC6aAAAKPoY.png:large" alt="Simon Willison (@simonw) on X — TIL Google Chrome has a --headless option you can use to take a screenshot from the CLI that&#39;s built into the default installation" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Simon Willison (@simonw) on X</div>
      <div class="embed-card-description">TIL Google Chrome has a --headless option you can use to take a screenshot from the CLI that&#39;s built into the default installation</div>
      <div class="embed-card-meta">X (formerly Twitter) &middot; twitter.com</div>
    </div>
  </a>
</div>


Huh, so this is just built right into the chrome cli.

``` python
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --headless \
  --screenshot=/tmp/shot1.png \
  https://simonwillison.net
```
