firestore_index_automator 0.1.4
firestore_index_automator: ^0.1.4 copied to clipboard
A CLI tool that wraps flutter run and automatically detects, parses, and deploys missing Firestore composite indexes — no more manual index creation.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate firestore_index_automatorUse it
The package has the following executables:
$ fia
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add firestore_index_automatorWith Flutter:
$ flutter pub add firestore_index_automatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
firestore_index_automator: ^0.1.4Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:firestore_index_automator/firestore_index_automator.dart';