Cmd/Ctrl + K

Commands

Run commands through the framework binary:

The skeleton also exposes common commands through Composer scripts.

Application

These commands inspect the application and support local development.

CommandPurpose
aboutShow framework information, base path, and loaded providers.
serve [host:port]Start PHP's built-in development server.
help [command]Show command help.
listList available commands.

Configuration and routes

Use these commands to inspect or rebuild framework configuration, routes, and container state.

CommandPurpose
config:get <key>Print a single config value.
config:listPrint config values with sensitive values redacted.
config:cacheBuild the configuration cache.
config:clearClear the configuration cache.
route:listList registered routes.
route:cacheBuild the route cache.
route:clearClear the route cache.
container:listShow container bindings and instances.
optimizeBuild production caches.
optimize:clearClear generated caches.

Generators

Generators create application classes in the conventional directories.

CommandPurpose
make:controller <name>Create a controller under app/Controllers.
make:model <name>Create a model under app/Models.
make:middleware <name>Create middleware.
make:request <name>Create a request class.
make:policy <name>Create an authorization policy.
make:job <name>Create a queue job.

Nested names create nested directories:

Database

The database commands create migration artifacts and manage schema and seed state.

CommandPurpose
make:migration <name>Create a migration file.
migrateRun pending migrations.
migrate:rollbackRoll back the latest migration batch.
migrate:statusShow migration status.
make:seed <name>Create a seeder.
seedRun seeders.

Queues

Use the queue commands to process jobs and manage failed job records.

CommandPurpose
queue:work [queue] [options]Process queued jobs.
queue:failedList failed jobs.
queue:retry <id-or-all>Retry failed jobs.
queue:flushClear failed jobs.

Worker options include --once, --stop-when-empty, --sleep=3, and --max-jobs=0.

Use finite worker modes in tests and one-off maintenance runs:

Scheduler

Scheduler commands run due tasks or show the current schedule.

CommandPurpose
schedule:runRun due scheduled tasks.
schedule:listList scheduled tasks and due/lock state.

Publishing

Publishing commands copy package resources into the application.

CommandPurpose
vendor:publish --provider="Provider\\Class"Publish by provider.
vendor:publish --tag=configPublish resources by tag.
vendor:publish --allPublish all registered resources.
vendor:publish --all --forcePublish all and overwrite files.

Publishing is explicit and does not overwrite existing files unless --force is passed.