You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/commands/login.ts
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,15 +35,24 @@ export const command = new Command("login")
35
35
36
36
if(!options.reauth){
37
37
utils.logBullet(
38
-
"Firebase optionally collects CLI and Emulator Suite usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.\n",
38
+
"Firebase CLI integrates with Gemini in Firebase API to provide assistant features. Learn more about using Gemini in Firebase and how we train our models: https://firebase.google.com/docs/gemini-in-firebase/set-up-gemini#required-permissions",
39
+
);
40
+
constgeminiUsage=awaitconfirm("Enable Gemini in Firebase features?");
41
+
configstore.set("gemini",geminiUsage);
42
+
43
+
logger.info();
44
+
utils.logBullet(
45
+
"Firebase optionally collects CLI and Emulator Suite usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.",
39
46
);
40
47
constcollectUsage=awaitconfirm(
41
48
"Allow Firebase to collect CLI and Emulator Suite usage and error reporting information?",
42
49
);
43
50
configstore.set("usage",collectUsage);
44
-
if(collectUsage){
51
+
52
+
if(geminiUsage||collectUsage){
53
+
logger.info();
45
54
utils.logBullet(
46
-
"To change your data collection preference at any time, run `firebase logout` and log in again.",
55
+
"To change your the preference at any time, run `firebase logout` and `firebase login` again.",
0 commit comments