# cscli contexts inspect

## cscli contexts inspect[​](#cscli-contexts-inspect "Direct link to cscli contexts inspect")

Inspect given context(s)

### Synopsis[​](#synopsis "Direct link to Synopsis")

Inspect the state of one or more contexts

TEXTCOPY

```
cscli contexts inspect [item]... [flags]
```

### Examples[​](#examples "Direct link to Examples")

TEXTCOPY

```
# Display metadata, state and ancestor collections of contexts (installed or not).
cscli contexts inspect crowdsecurity/bf_base crowdsecurity/fortinet

# Display difference between a tainted item and the latest one.
cscli contexts inspect crowdsecurity/bf_base --diff

# Reverse the above diff
cscli contexts inspect crowdsecurity/bf_base --diff --rev
```

### Options[​](#options "Direct link to Options")

TEXTCOPY

```
      --diff         Show diff with latest version (for tainted items)
  -h, --help         help for inspect
      --no-metrics   Don't show metrics (when cscli.output=human)
      --rev          Reverse diff output
  -u, --url string   Prometheus url
```

### Options inherited from parent commands[​](#options-inherited-from-parent-commands "Direct link to Options inherited from parent commands")

TEXTCOPY

```
      --color string    Output color: yes, no, auto (default "auto")
  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config.yaml")
      --debug           Set logging to debug
      --error           Set logging to error
      --info            Set logging to info
  -o, --output string   Output format: human, json, raw
      --trace           Set logging to trace
      --warning         Set logging to warning
```

### SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [cscli contexts](https://docs.crowdsec.net/docs/next/cscli/cscli_contexts.md) - Manage hub contexts
