# `mix site_maps.gen`
[🔗](https://github.com/marcosgz/site_maps_ex/blob/v0.1.0/lib/mix/tasks/site_maps.gen.ex#L1)

Generates a starter module that uses `SiteMaps`, with a static process and a dynamic process
sharded by month, written through the `SiteMaps.Adapters.FileSystem` adapter.

    $ mix site_maps.gen MyApp.Sitemaps
    $ mix site_maps.gen MyApp.Sitemaps --multi

The module is written to `lib/my_app/sitemaps.ex`. By default it reads its `url` from the
application environment and the task prints the configuration to add; with `--multi` the url and
adapter come from `config/1`.

## Options

  * `--multi` - generate a module for several sites, with `c:SiteMaps.config/1` and
    `c:SiteMaps.load_context/1` building the options of each site from the context
  * `--force` - overwrite an existing file without asking

---

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