1---
2pageid: cmd.get-config
3title: get-config
4layout: docs
5section: Commands
6permalink: docs/cmd/get-config.html
7---
8
9The `get-config` command returns the `.watchmanconfig` for the root.
10If there is no `.watchmanconfig`, it returns an empty configuration field:
11
12```bash
13$ watchman get-config .
14{
15    "version": "2.9.9",
16    "config": {}
17}
18```
19
20```bash
21$ watchman get-config /path/to/root
22{
23    "version": "2.9.9",
24    "config": {
25        "ignore_dirs": [
26            "buck-out"
27        ]
28    }
29}
30```
31
32Note that watchman only reads the `.watchmanconfig` file when the watch is
33established.  If changes are made after that point, the `get-config` response
34will not reflect them.
35
36See [Configuration Options](/watchman/docs/config.html#configuration-options)
37for details on valid contents of the `config` field.  Note that the values
38returned by `get-config` are passed straight through from the `.watchmanconfig`
39file, and thus may contain fields that are not strictly legal.
40
41This command is available since watchman version 2.9.9.
42