# `mix agent_db.grep`
[🔗](https://github.com/manhvu/agent_db/blob/v0.1.0/lib/mix/tasks/agent_db.grep.ex#L1)

Searches full document content (L2) for a literal substring.

    mix agent_db.grep TERM [--scope URI] [--limit N] [--json]

Options:

  * `--scope` - a `viking://` URI to limit the search.
  * `--limit` - maximum results (default `50`).
  * `--json` - print results as JSON instead of one match per line.
  * `--no-compile` - do not compile the project before running.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
