﻿---
title: diff validate
description: Gathers the local changes by inspecting the git log, stashed and unstashed changes. It currently validates the following: Ensures that renames and deletions...
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2723/cli/docset/diff-validate
---

# diff validate
Gathers the local changes by inspecting the git log, stashed and unstashed changes.
It currently validates the following:
- Ensures that renames and deletions are reflected in [redirects.yml](https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2723/contribute/redirects).


## Usage

```
docs-builder diff validate [options...] [-h|--help] [--version]
```


## Options

<definitions>
  <definition term="-p|--path <string>">
    Defaults to the`{pwd}/docs` folder (optional)
  </definition>
</definitions>