# `mix text.download_tlds`
[🔗](https://github.com/kipcole9/text/blob/v0.6.1/lib/mix/tasks/text.download_tlds.ex#L1)

Refreshes `priv/extract/tlds.txt` from
[`data.iana.org`](https://data.iana.org/TLD/tlds-alpha-by-domain.txt).

The TLD list is bundled in source control; this task exists to make
refreshes reproducible and audited. The list is small (~1,440 lines,
~10 KB) and changes a few times per year as IANA adds or sunsets
TLDs.

After running, `Text.Extract.Tld` (and the regex baked into
`Text.Extract.Scanner`) automatically picks up the new list at next
compile.

## Usage

    mix text.download_tlds

## Options

* `--force` — overwrite even when the on-disk file is up-to-date by
  version line. Default: only writes if the upstream is different.

* `--diff` — print a unified diff between current and upstream
  without writing.

---

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