# `Lightning.Adaptors.Dump`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/lightning/adaptors/dump.ex#L1)

Writes the adaptor catalogue to a JSON snapshot file, in the shape
`Lightning.Adaptors.Seed.seed_from_file/2` reads back.

# `dump_to_file`

```elixir
@spec dump_to_file(Path.t(), keyword()) :: {:ok, non_neg_integer()}
```

Writes every `source` adaptor and its versions to `path` as JSON, and
returns the number of records written.

Options:

  * `:source` - `:npm` (default) or `:local`

---

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