# `mix elementorex.install`
[🔗](https://github.com/rocket4ce/elementorex_cms/blob/v0.1.0/lib/mix/tasks/elementorex.install.ex#L1)

Checks the steps that connect ElementorexCms to a Phoenix app and prints the
snippet for any missing one. It does not modify files.

    $ mix elementorex.install

What it checks:

  1. the editor hooks are registered in a JS entry point
     (`import {hooks as Elementorex} from "elementorex_cms"`)
  2. esbuild resolves the package from `deps/` (`NODE_PATH` in `config.exs`)
  3. the CSS that renders documents scans the blocks
     (`@source "../../deps/elementorex_cms/lib"`)
  4. optionally, the public runtime (countdown) is registered

Options: `--js` and `--css` to point to other entry points (globs).

---

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