# `mix backpex.install`
[🔗](https://github.com/naymspace/backpex/blob/0.18.3/lib/mix/tasks/backpex.install.ex#L49)

Installs and sets up Backpex according to the installation guide

This task automates the steps from the [Backpex installation guide](installation.html) to quickly set up Backpex in your Phoenix application.

You can run it with `mix backpex.install` after adding Backpex to your dependencies,
or with `mix igniter.install backpex` to add the dependency and run the installer in one step.

## What this installer does:

- Sets up [Global Configuration](installation.html#global-configuration) by configuring the PubSub server
- Adds [Backpex Hooks](installation.html#backpex-hooks) to your app.js or app.ts file (auto-detected)
- Installs [daisyUI](installation.html#daisyui) via npm (with your permission)
- Sets up the [formatter configuration](installation.html#setup-formatter)
- Adds [Backpex files to Tailwind content](installation.html#add-files-to-tailwind-content)
- Adds routes to your router
- Creates a default admin layout
- Checks for and offers to remove the [default background color](installation.html#remove-default-background-color)
- Checks for and offers to remove the [@tailwindcss/forms plugin](installation.html#remove-tailwindcssforms-plugin)

## Example

```bash
mix backpex.install
```

## Options

* `--app-js-path` - Path to your app.js or app.ts file (auto-detected by default)
* `--app-css-path` - Path to your app.css file (default: "assets/css/app.css")
* `--no-layout` - Skip generating the admin layout

---

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