gatovel / cli
Command-line interface for the Gatovel Framework, providing application generators, database migrations, seeders, and development commands.
Requires
- php: ^8.3
- gatovel/database: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Gatovel CLI is the command-line interface for the Gatovel Framework.
It provides commands for generating application components, managing database migrations, running seeders, and supporting common development tasks.
Documentation
Available Commands
| Command | Description |
|---|---|
help |
Display available commands |
version |
Display CLI version |
make:controller |
Create a controller |
make:model |
Create a model |
make:view |
Create a view |
make:middleware |
Create a middleware |
make:service |
Create a service |
make:migration |
Create a migration |
make:seeder |
Create a database seeder |
migrate |
Run pending migrations |
migrate:rollback |
Roll back the latest migration batch |
migrate:status |
Display migration status |
db:seed |
Run database seeders |
Basic Usage
Commands are executed from the root directory of a Gatovel Framework application.
php gatovel <command>
Examples:
php gatovel help
php gatovel make:controller UserController
php gatovel make:model User
php gatovel make:view users/index
php gatovel make:middleware AuthMiddleware
php gatovel make:service UserService
php gatovel make:migration create_users_table
php gatovel make:seeder UserSeeder
php gatovel migrate
php gatovel migrate:status
php gatovel migrate:rollback
php gatovel db:seed
Architecture
Gatovel CLI
│
▼
Application
│
▼
CommandRegistry
│
├── Generator Commands
│ │
│ ▼
│ Generators
│
└── Database Commands
│
▼
Gatovel Database
Commands are registered through the CLI application.
Generator commands delegate file creation to dedicated generator classes.
Database commands use the gatovel/database package for migrations and seeders.
Requirements
Gatovel CLI requires:
- PHP 8.3 or higher
- Composer
- Gatovel Database 2.x
- A Gatovel Framework application
See Installation for setup instructions.