bavard_cli 0.0.2
bavard_cli: ^0.0.2 copied to clipboard
Command line interface for Bavard ORM.
Bavard CLI #
Command-line interface for the Bavard ORM. This tool helps you quickly generate models and pivot tables for your Bavard project.
📚 Documentation #
For detailed guides, API references, and usage examples, please visit our documentation:
Make Model #
Generates a new Bavard model file.
bavard make:model <ModelName> [options]
Options:
--table=names: Specify a custom table name (defaults to snake_case plural of model name).--columns=name:type,age:int: Define columns with types (supported: string, int, double, num, bool, datetime, blob).--force: Overwrite existing files.
Example:
bavard make:model User --columns=name:string,email:string,age:int --table=users
Make Pivot #
Generates a new Pivot model for many-to-many relationships.
bavard make:pivot <PivotName> [options]
Options:
--columns=is_admin:bool: Define extra columns on the pivot table.--force: Overwrite existing files.
Example:
bavard make:pivot UserRole --columns=is_active:bool,assigned_at:datetime