Using Mullion

The project page

Everything about one project in one place: commands, workers, packages, Git, a terminal, domains and settings.

Open a project by clicking its name on the Sites page, with Manage, or by going to #project/<name> in the panel. The header shows:

The tabs you see depend on the project: a PHP project gets Workers, and a project with a composer.json or package.json gets Packages.

Commands

The Commands tab lists everything the project can run:

Quick actions cover the usual tasks, such as migrate, optimize:clear, route:list and npm run build. Destructive ones are shown in red. Search the full list and mark favorites.

Commands run in the project folder with the project's PHP and Node, and their output streams into the panel. Interactive commands such as tinker, a REPL, or anything that prompts go to a terminal tab instead.

The Commands tab: quick actions, the artisan command list and a finished run of php artisan migrate:status

From a shell, mullion run does the same thing:

$ mullion run shop -- php artisan migrate
$ mullion run -- composer install       # the site linked to the current folder

Workers

Workers are long-running commands that Mullion keeps up for a project. It offers templates for the project's framework:

The Workers tab: a running queue worker and scheduler, and a paused Reverb server
$ mullion worker add shop --name Queue --kind queue --command "php artisan queue:work --tries=3" --autostart
$ mullion worker add shop --name Scheduler --kind scheduler --command "php artisan schedule:work" --autostart
$ mullion worker list
$ mullion worker logs shop queue -n 100
$ mullion worker restart shop queue

Packages

Search Packagist or the npm registry, then install or remove a package, either as a normal dependency or as a dev dependency. The tab also lists the Composer and npm packages already installed. The CLI works the same way:

$ mullion pkg search composer stripe
$ mullion pkg add shop composer laravel/horizon
$ mullion pkg add shop npm @tailwindcss/vite --dev
$ mullion pkg list shop
$ mullion pkg remove shop npm lodash

Git

A full Git client for the project, covered on the Git page.

Terminal

A terminal in the project folder, with the project's PHP and Node. See Terminal. Open in window pops it out.

Domains

Settings