supadart 1.1.0 supadart: ^1.1.0 copied to clipboard
Generate Dart classes from your Supabase schema.
Supabase Schema Dart Class Generator #
This is a simple command line tool that generates dart classes from your Supabase schema.
Installation #
# 🎯 Active from pub.dev
dart pub global activate supadart
# 🚀 Run via
supadart
# or
dart pub global run supadart
Generate Classes #
# If you have a .env file in the root of your project
supadart
# If you have a .env file in a different location
supadart -e path/to/.env
# If you dont have a .env file specify the Supabase URL and ANON KEY
supadart -u <your-supabase-url> -k <your-supabase-anon-key>
Options #
-h, --help Show usage information
-e, --env-path Path to the .env file -- (default: .env)
-u, --url Supabase URL -- (default: .env SUPABASE_URL)
-k, --key Supabase ANON KEY -- (default: .env SUPABASE_ANON_KEY)
-o, --output Output file path -- (default: lib/generated_classes.dart)