bavard_cli 0.0.2 copy "bavard_cli: ^0.0.2" to clipboard
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:

👉 Read the 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
0
likes
130
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

Command line interface for Bavard ORM.

Documentation

API reference

License

MIT (license)

Dependencies

path, yaml

More

Packages that depend on bavard_cli