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

Indexes Elixir sources structurally.

    mix agent_db.index --project NAME --dir PATH

Options:

  * `--project` - project name used under `viking://resources/NAME/code` (required).
  * `--dir` - directory holding `.ex`/`.exs` files (default `lib`).
  * `--json` - print the outcome as JSON instead of human text.
  * `--no-compile` - do not compile the project before running.

---

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