invertase / flutterfire_cli

A CLI to help with using FlutterFire in your Flutter applications.
Apache License 2.0
170 stars 47 forks source link

request: Add the ability to run flutterfire reconfigure at CI #232

Open AhmedLSayed9 opened 10 months ago

AhmedLSayed9 commented 10 months ago

Is there an existing feature request for this?

Command

flutterfire reconfigure --token "$FIREBASE_TOKEN"

Description

Running a firebase command in a CI system can be done using the --token flag.

The --token flag is already supported by flutterfire configure but we can't use it with flutterfire reconfigure.

Reasoning

It's a bit tedious to write all the flutterfire configure commands at the CI while we can easily use flutterfire reconfigure.

Additional context and comments

No response

russellwheatley commented 2 months ago

Hey @AhmedLSayed9 - There is already a hidden flag for passing the access token that should work: https://github.com/invertase/flutterfire_cli/blob/main/packages/flutterfire_cli/test/reconfigure_test.dart#L121-L126

Let me know how it goes and I'll update the code to make this a public flag. Thanks 🙏