Skip to content

No results for

navigate open Esc close

Aura CLI — own the code

Aura ships an additive CLI alongside the Composer package. Keep the package for managed upgrades, or copy any component's source into your project and own it.

Setup (once)

php artisan aura:init

This publishes the Aura CSS to resources/css/vendor/aura-ui/ and prepares resources/views/components/aura/. Add the stylesheet after Tailwind:

@import "tailwindcss";
@import "vendor/aura-ui/aura.css";

Add components

php artisan aura:add button

The component and its dependencies are copied into resources/views/components/aura/. Internal references are rewritten to the local dot namespace, so use them as:

<x-aura.button>Click</x-aura.button>

Options

  • --force — overwrite existing files
  • --dry-run — preview without writing
  • --no-deps — skip dependencies
  • --path= — custom destination directory

Pro components

Pro components require the Pro package (your license is checked at install time):

composer require bluestarsystem/aura-ui-pro
php artisan aura:add scheduler