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.
| Command | Purpose |
|---|---|
about | Show version, base path, and loaded providers. |
serve | Run PHP's built-in development server. |
route:list | List registered routes. |
route:cache | Build the route cache. |
route:clear | Clear the route cache. |
config:get <key> | Read a config value. |
config:list | List config values with secrets redacted. |
config:cache | Build the config cache. |
config:clear | Clear the config cache. |
container:list | Show container bindings and instances. |
vendor:publish | Publish package resources. |
optimize | Build production caches. |
optimize:clear | Clear generated framework caches. |
Generators
Generator commands create application classes in their conventional locations.
| Command | Purpose |
|---|---|
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.