View Source mix inertia.install (Inertia v2.5.1)

Installs and configures the Inertia.js adapter in a Phoenix application.

This installer:

  1. Updates controller and HTML components to import Inertia functions
  2. Adds the Inertia plug to the browser pipeline
  3. Adds basic configuration in config.exs
  4. Updates esbuild and configures code splitting
  5. Set up the client-side integration packages

Usage

mix inertia.install

Options

--client-framework FRAMEWORK  Framework to use for the client-side integration
                              (react, vue, or svelte). Default is react.
--camelize-props              Enable camelCase for props
--history-encrypt             Enable history encryption
--typescript                  Enable TypeScript
--yes                         Don't prompt for confirmations