> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Installing the `get-snappy` CLI

In your CI environment you'll need the `get-snappy` CLI. It runs your test suite, renders the snapshots your tests take in [Playwright](https://playwright.dev) browsers, and uploads the screenshots to Get Snappy.

Each release of the CLI runs one exact Playwright version and launches that version's browsers. `get-snappy` 0.7.2 runs Playwright 1.65.2, so run CI in the `mcr.microsoft.com/playwright:v1.65.2-noble` image, or an image built from it. It already has the browsers, their system dependencies and Node.js.

The CLI is the `@get-snappy/cli` package on npm and needs Node.js 22.12 or later. Install it inside your container, pinned to a version:

```docker
FROM mcr.microsoft.com/playwright:v1.65.2-noble

ARG GET_SNAPPY_VERSION=0.7.2
RUN npm install -g @get-snappy/cli@${GET_SNAPPY_VERSION} && get-snappy version
```

If you can't use the Playwright image, run `get-snappy install-browsers` after installing the CLI to download the matching browsers.

When you upgrade the CLI, check the Playwright version the new release needs in the package's `CHANGELOG.md` (on npm, under the Code tab), and move to the matching image.

`get-snappy snapshot-run` writes `get-snappy.log` in the working directory, recording every snapshot it receives and every one it rejects. Keep it as a CI artifact to trace a missing snapshot.

You'll also need to provide some environment variables for each test run. Your API key is the one generated when you created your [project](/guide/getting-started/first-project.md)

```
GET_SNAPPY_API_KEY="YOUR_API_KEY"
GET_SNAPPY_COMMIT= # git sha that triggered this build
GET_SNAPPY_BRANCH= # git branch this build belongs to
```

If you were using Buildkite, for example, you can reference pre-provided environment variables in your `pipeline.yml`

```yml
GET_SNAPPY_API_KEY: "YOUR_API_KEY"
GET_SNAPPY_COMMIT: $BUILDKITE_COMMIT
GET_SNAPPY_BRANCH: $BUILDKITE_BRANCH
```

There's a little more configuration, but it depends on whether you're testing [Elixir Phoenix](/guide/getting-started/elixir-phoenix.md) or [Ember.js](/guide/getting-started/ember-js.md)
