Elyra
Development
Development
Elyra

Herd

Laravel Herd integration — services, logs, .env sync, and PHP version switching.

@elyracode/herd connects the agent to your local Herd environment so it can answer "is anything broken locally?" without you leaving the terminal.

Install

elyra install npm:@elyracode/herd

Tools

Tool Description
herd_status Show PHP version, active services, linked sites, Node.js version
herd_logs Read Nginx, PHP, and Laravel error logs from Herd
herd_env_sync Verify .env matches Herd configuration (DB host/port, Redis, APP_URL, Mailpit)
herd_php Show or switch PHP version

Commands

Command Description
/herd Show the Herd dashboard
/herd-logs Show recent error logs
/herd-sync Check .env against Herd config

Examples

> What services are running in Herd?
> Show me the PHP error logs
> Does my .env match Herd's configuration?
> Switch to PHP 8.4
/herd
/herd-logs
/herd-sync

.env sync checks

herd_env_sync verifies:

  • DB_HOST127.0.0.1 for Herd MySQL/PostgreSQL
  • DB_PORT — Herd defaults (3306 for MySQL, 5432 for PostgreSQL)
  • REDIS_HOST127.0.0.1
  • APP_URL — uses a .test domain
  • MAIL_HOST / MAIL_PORT — Herd Mailpit (127.0.0.1:2525)

Requirements

  • Laravel Herd installed, with the herd CLI on PATH
  • macOS (Herd’s primary platform)