VeldoraDocs

10. CLI Console & 51 Built-in Commands

Veldora includes a powerful, zero-dependency CLI runner (php veldora) featuring 51 built-in commands. Powered by executeDirect(), every command executes instantly in both zero-dependency environments and standard Symfony Console environments.

Terminal • bash
php veldora <command> [options]

Application & Diagnostics

CommandDescription
php veldora serveStart local development server with real-time logs (--port=8000, --host=127.0.0.1)
php veldora aboutDisplay framework environment, database driver, PHP version, and cache status
php veldora doctorRun system health diagnostics, check PHP extensions, and verify directory permissions
php veldora key:generateGenerate a cryptographically secure 32-character APP_KEY in .env
php veldora storage:linkCreate symbolic link from public/storage to storage/app/public
php veldora downPut the application into maintenance mode (optional: --secret=your-token for bypass)
php veldora upBring the application out of maintenance mode
php veldora envDisplay current application environment name
php veldora env:encryptEncrypt .env file using AES-256 with APP_KEY for safe version control
php veldora env:decryptDecrypt .env.encrypted file using APP_KEY on production servers

Code Generators (make:*)

CommandDescription
php veldora make:controller <Name>Scaffold a new HTTP Controller class in app/Controllers/
php veldora make:model <Name> [-m]Scaffold an ActiveRecord Model class (-m automatically creates migration)
php veldora make:migration <name>Create an anonymous class database migration in database/migrations/
php veldora make:middleware <Name>Scaffold an HTTP Middleware class in app/Http/Middleware/
php veldora make:policy <Name>Scaffold an authorization Policy class in app/Policies/ (--model=Post)
php veldora make:observer <Name>Scaffold a Model Observer class in app/Observers/ (--model=User)
php veldora make:rule <Name>Scaffold a custom Validation Rule class in app/Rules/
php veldora make:request <Name>Create a validated Form Request class in app/Http/Requests/
php veldora make:resource <Name>Create an API JSON Resource transformer in app/Http/Resources/
php veldora make:factory <Name>Create a Model Factory in database/factories/ (--model=User)
php veldora make:seeder <Name>Create a Database Seeder in database/seeders/
php veldora make:command <Name>Create a custom Veldora Console Command class
php veldora make:job <Name>Scaffold a background Queue Job class in app/Jobs/
php veldora make:event <Name>Scaffold a dispatchable Event class in app/Events/
php veldora make:listener <Name>Scaffold an Event Listener in app/Listeners/
php veldora make:mail <Name>Scaffold a Mailable email class in app/Mail/ with HTML view template
php veldora make:component <name>Create a new UI component template in resources/views/components/
php veldora make:authScaffold full authentication (Login, Register, Forgot/Reset Password, Profile, Views, Routes)

Database Management

CommandDescription
php veldora migrateRun pending database migrations
php veldora migrate:rollbackRollback the last migration batch (--step=N to rollback N steps)
php veldora migrate:freshDrop all tables and re-run all migrations from scratch (--seed to auto-seed)
php veldora migrate:statusShow the status and batch table for all migrations
php veldora db:seedRun database seeders from database/seeders/ (--class=UserSeeder)
php veldora db:wipeDrop all tables, views, and types in the database
php veldora db:showDisplay database schema overview, table list, and row counts

Routing & URL Generation

CommandDescription
php veldora route:listDisplay a formatted table of all registered routes, HTTP methods, actions, and middleware
php veldora route:cacheCompile and cache registered routes into storage/framework/routes.cache.php
php veldora route:clearRemove the route cache file for local development

Optimization & Caching

CommandDescription
php veldora optimizeCache framework configuration, routes, and views for production
php veldora optimize:clearClear all cached bootstrap files and templates
php veldora config:cacheCompile all config files into a single cached file for fast boot
php veldora config:clearRemove configuration cache
php veldora config:show <key>Display configuration values for a specific key
php veldora view:cacheCompile all .veldora.php templates into PHP cache files
php veldora view:clearFlush all compiled view templates from storage/framework/views/
php veldora cache:clearFlush application and session cache

Queue Processing

CommandDescription
php veldora queue:workStart processing jobs on the queue daemon (--queue=default, --sleep=3, --tries=3)
php veldora queue:failedDisplay a list of all failed queue jobs with exception traces
`php veldora queue:retry <idall>`Retry a specific failed job by ID or retry all failed jobs
php veldora queue:clearDelete all pending jobs from the specified queue

UI Component Management

CommandDescription
php veldora ui:listList all 41+ available UI components and their installation status
php veldora add <components...>Install UI components into resources/views/components/ (e.g. php veldora add button card modal)

Building with AI Assistants?
Copy the Veldora AI Developer Prompt to teach ChatGPT, Claude, Cursor, or Gemini all framework APIs for error-free coding.