convex_dart_cli 0.2.0
convex_dart_cli: ^0.2.0 copied to clipboard
Command-line tool for generating type-safe Dart client code from Convex backend schemas
convex_dart_cli #
Command-line tool for generating type-safe Dart client code from Convex backend schemas.
Installation #
Add convex_dart_cli
to your pubspec.yaml
:
dev_dependencies:
convex_dart_cli: ^0.2.0
Or install via the command line:
dart pub add dev:convex_dart_cli
Usage #
Basic Usage #
Generate Dart client code from your Convex backend:
dart run convex_dart_cli generate
Advanced Usage #
# Specify custom paths
dart run convex_dart_cli generate --js ./my-convex-project --output ./lib/src/api
# Production mode
dart run convex_dart_cli generate --prod
Features #
- π Auto-regeneration: Monitors your Convex functions and regenerates Dart code automatically
- β‘ Fast builds: Incremental generation only rebuilds changed functions
- π οΈ Development integration: Runs
convex dev
in the background - π Helpful errors: Provides detailed error messages and troubleshooting tips
- π― Type validation: Ensures all Convex types are supported before generation
Integration #
This CLI tool integrates seamlessly with the convex_dart
package to provide a complete development experience for building Flutter apps with Convex backends.
License #
This project is licensed under the MIT License - see the LICENSE file for details.