convex_dart_cli 0.2.0 copy "convex_dart_cli: ^0.2.0" to clipboard
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.

0
likes
140
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

Command-line tool for generating type-safe Dart client code from Convex backend schemas

Documentation

API reference

License

MIT (license)

Dependencies

cli_tools, cli_util, collection, config, dart_mappable, dart_style, path, recase, synchronized

More

Packages that depend on convex_dart_cli