Essentials
Core commands to manage the application lifecycle and development.
Global Commands
| Command | Usage Example | Description |
|---|---|---|
| about | php xeno about | Display basic information about your application |
| help | php xeno help [cmd] | Display help for a command |
| list | php xeno list | List all available commands |
| serve | php xeno serve |
Serve the application on the PHP development server.
Interactive Options:
You will be asked: "Do you need the Socket.io server?"
|
| tinker | php xeno tinker | Interact with your application REPL |
| up / down | php xeno up | Bring application in/out of maintenance mode |
Xeno Specific
| Command | Usage Example | Description |
|---|---|---|
| xeno:easy | php xeno xeno:easy | Interactive menu to discover and run commands easily |
| xeno:optimize | php xeno xeno:optimize | Cache everything to make the application "Fast" and "Powerful" |
| server:check | php xeno server:check | Check server environment requirements |
Generators (Make)
Scaffold new classes and files instantly.
| Command | Usage Example | Description |
|---|---|---|
| make:controller | php xeno make:controller [Name] | Create a new controller class |
| make:model | php xeno make:model [Name] | Create a new Eloquent model class |
| make:migration | php xeno make:migration [Name] | Create a new migration file |
| make:mail | php xeno make:mail [Name] | Create a new email class |
| make:notification | php xeno make:notification [Name] | Create a new notification class |
| make:provider | php xeno make:provider [Name] | Create a new service provider |
| make:seeder | php xeno make:seeder [Name] | Create a new seeder class |
| make:factory | php xeno make:factory [Name] | Create a new model factory |
| make:middleware | php xeno make:middleware [Name] | Create a new HTTP middleware class |
| make:request | php xeno make:request [Name] | Create a new form request class |
| make:resource | php xeno make:resource [Name] | Create a new resource |
| make:command | php xeno make:command [Name] | Create a new Artisan command |
| make:event | php xeno make:event [Name] | Create a new event class |
| make:listener | php xeno make:listener [Name] | Create a new event listener class |
| make:job | php xeno make:job [Name] | Create a new job class |
| make:test | php xeno make:test [Name] | Create a new test class |
...and many more. Run `php xeno list` to see all.
Database Management
Manage your database schema, seeds, and models.
Migrations
| Command | Usage Example | Description |
|---|---|---|
| migrate | php xeno migrate | Run the database migrations |
| migrate:fresh | php xeno migrate:fresh | Drop all tables and re-run all migrations |
| migrate:rollback | php xeno migrate:rollback | Rollback the last database migration |
| migrate:status | php xeno migrate:status | Show the status of each migration |
Seeding & DB
| Command | Usage Example | Description |
|---|---|---|
| db:seed | php xeno db:seed | Seed the database with records |
| db:wipe | php xeno db:wipe | Drop all tables, views, and types |
| db:table | php xeno db:table [table] | Display information about a given table |
| db:show | php xeno db:show | Display information about the database |
| model:prune | php xeno model:prune | Prune models that are no longer needed |
| model:show | php xeno model:show [Model] | Show information about an Eloquent model |
System & Optimization
Tools to clear caches, optimize performance, and manage configurations.
Optimization
| Command | Usage Example | Description |
|---|---|---|
| optimize | php xeno optimize | Cache framework bootstrap, config, and metadata |
| optimize:clear | php xeno optimize:clear | Remove the cached bootstrap files |
| config:cache | php xeno config:cache | Create a cache file for faster configuration loading |
| route:cache | php xeno route:cache | Create a route cache file |
| view:cache | php xeno view:cache | Compile all Blade templates |
| event:cache | php xeno event:cache | Discover and cache the application's events |
Clearing & Debug
| Command | Usage Example | Description |
|---|---|---|
| cache:clear | php xeno cache:clear | Flush the application cache |
| config:clear | php xeno config:clear | Remove the configuration cache file |
| route:clear | php xeno route:clear | Remove the route cache file |
| view:clear | php xeno view:clear | Clear all compiled view files |
| event:clear | php xeno event:clear | Clear all cached events and listeners |
| route:list | php xeno route:list | List all registered routes |
| storage:link | php xeno storage:link | Create the symbolic links configured for the application |
| storage:unlink | php xeno storage:unlink | Delete existing symbolic links |
Runtime & Queues
Manage background jobs, schedules, and events.
| Command | Usage Example | Description |
|---|---|---|
| queue:work | php xeno queue:work | Start processing jobs on the queue as a daemon |
| queue:listen | php xeno queue:listen | Listen to a given queue |
| queue:restart | php xeno queue:restart | Restart queue worker daemons after current job |
| queue:monitor | php xeno queue:monitor [queue] | Monitor the size of the specified queues |
| queue:retry | php xeno queue:retry [id] | Retry a failed queue job |
| queue:failed | php xeno queue:failed | List all failed queue jobs |
| schedule:run | php xeno schedule:run | Run the scheduled commands |
| schedule:work | php xeno schedule:work | Start the schedule worker (Dev) |
| schedule:list | php xeno schedule:list | List all scheduled tasks |
| event:list | php xeno event:list | List the application's events and listeners |
Security
Manage authentication, encryption, and protection.
| Command | Usage Example | Description |
|---|---|---|
| key:generate | php xeno key:generate | Set the application key |
| shield:status | php xeno shield:status | Check the security Shield status |
| sanctum:prune-expired | php xeno sanctum:prune-expired | Prune expired tokens |
| auth:clear-resets | php xeno auth:clear-resets | Flush expired password reset tokens |
Advanced Utilities
Helper commands for environment management, broadcasting, and publishing.
| Command | Usage Example | Description |
|---|---|---|
| env:encrypt | php xeno env:encrypt | Encrypt environment file |
| env:decrypt | php xeno env:decrypt | Decrypt environment file |
| channel:list | php xeno channel:list | List all registered private broadcast channels |
| install:api | php xeno install:api | Install API routes and Sanctum/Passport |
| install:broadcasting | php xeno install:broadcasting | Create broadcasting channel routes file |
| lang:publish | php xeno lang:publish | Publish language files for customization |
| stub:publish | php xeno stub:publish | Publish customizable code stubs |
| schema:dump | php xeno schema:dump | Dump the database schema |
| package:discover | php xeno package:discover | Rebuild the cached package manifest |
Packages & Ecosystem
Commands for integrated packages and tools.
| Namespace | Usage Example | Description |
|---|---|---|
| vendor:publish | php xeno vendor:publish | Publish assets from vendor packages |
| socket:serve | php xeno socket:serve | Start the Socket.io server |