# Client options

### Update baseline client option

In order to reduce manual work a cli option is available to copy over the comparison images into the baseline folder when there is a test failure.

#### Update all baseline images for failing tests

Notice that you should run this command after the test suite runs. The below command will only update baseline images that have a diff image, which basically means a test failure.

`$ cypress-image-diff -u`

It's important that you ensure the comparison image is the correct representation of the page under test as it will be copied over to the baseline.

#### Update a list of baseline images

This functionality is yet to be developed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cypress.visual-image-diff.dev/getting-started/client-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
