# `mix lightning.adaptors.refresh`
[🔗](https://github.com/OpenFn/lightning/blob/main/lib/mix/tasks/lightning.adaptors.refresh.ex#L1)

Trigger an adaptor catalogue refresh from the command line.

## Usage

    mix lightning.adaptors.refresh
    mix lightning.adaptors.refresh --name @openfn/language-http

Without `--name`, starts a refresh cycle (or joins one already running)
and waits for it to finish. With `--name`, refetches that one adaptor.

## Exit codes

  * `0` - success
  * `1` - package name not found
  * `2` - any other error, including a source that could not be listed
    or a refresh that took longer than 10 minutes

---

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