# `mix sekisho.install`
[🔗](https://github.com/hattoriai/sekisho/blob/v0.1.0-dev/lib/mix/tasks/sekisho.install.ex#L1)

Installs Sekisho in a Phoenix application.

    $ mix igniter.install sekisho

or, with Sekisho already in the deps, `mix sekisho.install`.
[Igniter](https://hexdocs.pm/igniter) shows each change as a diff
before it writes, and running the task again changes nothing:

  * the migration of Sekisho's tables (`mix sekisho.gen.migration`), with
    ids of your repo's type;
  * `lib/my_app/permissions.ex`, your permissions module, with no policy
    yet: your file, written once;
  * `import MyApp.Permissions, only: [allowed?: 3]` in the
    `html_helpers` of your web module, for templates;
  * `.formatter.exs` imports Sekisho's, so policies read
    `role :viewer, permissions: [:read]`.

Then write your first policy (`Sekisho.Policy`) and add it to
`policies:`.

---

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