Cmd/Ctrl + K

Console

Annabel ships with a lightweight CLI.

List commands

Inspect the registered command set through the application CLI.

Common commands include about, route:list, config:get, config:list, container:list, vendor:publish, serve, migrate, queue:work, and schedule:run.

Application commands

These commands inspect application state and manage generated caches.

CommandPurpose
aboutShow version, base path, and loaded providers.
serveRun PHP's built-in development server.
route:listList registered routes.
route:cacheBuild the route cache.
route:clearClear the route cache.
config:get <key>Read a config value.
config:listList config values with secrets redacted.
config:cacheBuild the config cache.
config:clearClear the config cache.
container:listShow container bindings and instances.
vendor:publishPublish package resources.
optimizeBuild production caches.
optimize:clearClear generated framework caches.

Generators

Generator commands create application classes in their conventional locations.

CommandPurpose
make:controller <name>Create a controller.
make:model <name>Create a model.
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.

Database commands are available when database integration is installed and configured:

Custom command

Implement a command class when application-specific work should be available from the CLI.

Register commands from a service provider with $this->commands([...]).

Publishing resources

Publish provider resources when a package exposes configuration, migrations, or other application-owned files.

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