firebase-tools 15.23.0 → 15.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/lib/api.js +4 -2
  2. package/lib/appcheck/api.js +42 -0
  3. package/lib/appcheck/prompts.js +41 -0
  4. package/lib/appcheck/types.js +2 -0
  5. package/lib/bin/cli.js +9 -2
  6. package/lib/bin/progressiveHelp.js +126 -0
  7. package/lib/checkValidTargetFilters.js +1 -1
  8. package/lib/command.js +11 -10
  9. package/lib/commands/ailogic-config-get.js +75 -0
  10. package/lib/commands/ailogic-config-set.js +109 -0
  11. package/lib/commands/ailogic-providers-disable.js +39 -0
  12. package/lib/commands/ailogic-providers-enable.js +28 -0
  13. package/lib/commands/ailogic-providers-list.js +29 -0
  14. package/lib/commands/appcheck-debugtokens-create.js +95 -0
  15. package/lib/commands/appcheck-debugtokens-delete.js +48 -0
  16. package/lib/commands/appcheck-debugtokens-list.js +35 -0
  17. package/lib/commands/apps-sdkconfig.js +2 -23
  18. package/lib/commands/database-get.js +1 -1
  19. package/lib/commands/dataconnect-execute.js +1 -1
  20. package/lib/commands/deploy.js +27 -64
  21. package/lib/commands/index.js +15 -0
  22. package/lib/deploy/apphosting/index.js +26 -1
  23. package/lib/deploy/auth/index.js +18 -1
  24. package/lib/deploy/database/index.js +16 -1
  25. package/lib/deploy/dataconnect/index.js +19 -1
  26. package/lib/deploy/extensions/index.js +9 -1
  27. package/lib/deploy/firestore/index.js +20 -1
  28. package/lib/deploy/functions/build.js +93 -3
  29. package/lib/deploy/functions/index.js +33 -1
  30. package/lib/deploy/functions/params.js +68 -26
  31. package/lib/deploy/functions/prepare.js +34 -8
  32. package/lib/deploy/functions/prompts.js +19 -0
  33. package/lib/deploy/functions/release/index.js +19 -12
  34. package/lib/deploy/functions/release/lifecycle.js +38 -5
  35. package/lib/deploy/functions/release/planner.js +3 -1
  36. package/lib/deploy/functions/runtimes/node/index.js +8 -7
  37. package/lib/deploy/functions/runtimes/node/versioning.js +8 -3
  38. package/lib/deploy/functions/validate.js +5 -2
  39. package/lib/deploy/hosting/index.js +30 -1
  40. package/lib/deploy/hosting/uploader.js +2 -1
  41. package/lib/deploy/index.js +68 -8
  42. package/lib/deploy/remoteconfig/index.js +9 -1
  43. package/lib/deploy/storage/index.js +16 -1
  44. package/lib/emulator/dataconnect/pgliteServer.js +2 -1
  45. package/lib/emulator/downloadableEmulatorInfo.json +30 -30
  46. package/lib/emulator/downloadableEmulators.js +1 -0
  47. package/lib/emulator/hubExport.js +2 -1
  48. package/lib/emulator/storage/apis/firebase.js +24 -5
  49. package/lib/emulator/storage/apis/gcloud.js +16 -6
  50. package/lib/emulator/storage/rules/runtime.js +45 -33
  51. package/lib/emulator/storage/server.js +2 -5
  52. package/lib/emulator/storage/upload.js +1 -0
  53. package/lib/ensureApiEnabled.js +8 -0
  54. package/lib/experiments.js +16 -0
  55. package/lib/extensions/warnings.js +64 -0
  56. package/lib/frameworks/utils.js +50 -1
  57. package/lib/functions/env.js +22 -2
  58. package/lib/functions/secrets.js +4 -1
  59. package/lib/gcp/ailogic.js +165 -1
  60. package/lib/gcp/cloudfunctionsv2.js +7 -0
  61. package/lib/gcp/firedata.js +5 -1
  62. package/lib/gcp/serviceusage.js +26 -0
  63. package/lib/hosting/proxy.js +15 -3
  64. package/lib/index.js +0 -1
  65. package/lib/init/features/ailogic/index.js +3 -29
  66. package/lib/init/features/database.js +1 -1
  67. package/lib/management/apps.js +16 -5
  68. package/lib/mcp/onemcp/onemcp_server.js +28 -9
  69. package/lib/mcp/tools/core/get_security_rules.js +2 -1
  70. package/lib/profiler.js +1 -1
  71. package/lib/streamUtils.js +3 -0
  72. package/lib/tsconfig.compile.tsbuildinfo +1 -1
  73. package/lib/tsconfig.publish.tsbuildinfo +1 -1
  74. package/package.json +2 -2
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.command = void 0;
4
+ const clc = require("colorette");
5
+ const node_crypto_1 = require("node:crypto");
6
+ const os = require("os");
7
+ const command_1 = require("../command");
8
+ const projectUtils_1 = require("../projectUtils");
9
+ const api_1 = require("../appcheck/api");
10
+ const prompts_1 = require("../appcheck/prompts");
11
+ const requireAuth_1 = require("../requireAuth");
12
+ const utils_1 = require("../utils");
13
+ const error_1 = require("../error");
14
+ const prompt_1 = require("../prompt");
15
+ const logger_1 = require("../logger");
16
+ exports.command = new command_1.Command("appcheck:debugtokens:create [debugToken]")
17
+ .description("generate and register an App Check debug token for an app")
18
+ .option("--app <appId>", "the app id of your Firebase app")
19
+ .option("--display-name <displayName>", "display name for the debug token")
20
+ .option("--force", "overwrite existing debug token if it has the same display name without prompting")
21
+ .before(requireAuth_1.requireAuth)
22
+ .action(async (debugToken, options) => {
23
+ const { appId } = await (0, prompts_1.getOrPromptProjectAndAppId)(options);
24
+ const projectNumber = await (0, projectUtils_1.needProjectNumber)(options);
25
+ let token = debugToken;
26
+ if (!token) {
27
+ if (!options.nonInteractive) {
28
+ const action = await (0, prompt_1.select)({
29
+ message: "Would you like to register a token generated by the SDK, or create a new one?",
30
+ choices: [
31
+ { name: "Create a new debug token", value: "generate" },
32
+ { name: "Register a token generated by the SDK", value: "sdk" },
33
+ ],
34
+ });
35
+ if (action === "sdk") {
36
+ token = await (0, prompt_1.password)({
37
+ message: "Enter the debug token generated by the SDK:",
38
+ validate: (val) => (val.trim().length > 0 ? true : "Debug token cannot be empty."),
39
+ });
40
+ }
41
+ else {
42
+ token = (0, node_crypto_1.randomUUID)();
43
+ }
44
+ }
45
+ else {
46
+ token = (0, node_crypto_1.randomUUID)();
47
+ }
48
+ }
49
+ let displayName = options.displayName;
50
+ const defaultName = `CLI Debug Token (${os.hostname() || "Unknown Host"})`;
51
+ if (!displayName) {
52
+ if (!options.nonInteractive) {
53
+ displayName = await (0, prompt_1.input)({
54
+ message: "What would you like to call this debug token?",
55
+ default: defaultName,
56
+ });
57
+ }
58
+ else {
59
+ displayName = defaultName;
60
+ }
61
+ }
62
+ const existingTokens = await (0, api_1.listDebugTokens)(projectNumber, appId);
63
+ const matchingTokens = existingTokens.filter((t) => t.displayName === displayName);
64
+ if (matchingTokens.length > 0) {
65
+ let shouldOverwrite = options.force;
66
+ if (!shouldOverwrite) {
67
+ if (options.nonInteractive) {
68
+ throw new error_1.FirebaseError(`A token with the display name "${displayName}" already exists. Must pass --force to overwrite in non-interactive mode.`, { exit: 1 });
69
+ }
70
+ shouldOverwrite = await (0, prompt_1.confirm)({
71
+ message: `A token with the display name "${displayName}" already exists. Delete the old token(s)?`,
72
+ default: true,
73
+ });
74
+ }
75
+ if (shouldOverwrite) {
76
+ for (const t of matchingTokens) {
77
+ await (0, api_1.deleteDebugToken)(t.name);
78
+ }
79
+ }
80
+ else {
81
+ throw new error_1.FirebaseError("Registration canceled.", { exit: 1 });
82
+ }
83
+ }
84
+ const result = await (0, utils_1.promiseWithSpinner)(async () => await (0, api_1.createDebugToken)(projectNumber, appId, displayName, token), `Registering App Check debug token with Firebase for app ${clc.bold(appId)}`);
85
+ (0, utils_1.logSuccess)(`Successfully registered App Check debug token:
86
+ - Display Name: ${clc.bold(result.displayName)}
87
+ - Resource Name: ${clc.cyan(result.name)}`);
88
+ if (!options.json) {
89
+ console.log(` - Token: ${clc.bold(clc.green(token))}\n`);
90
+ }
91
+ logger_1.logger.info(clc.yellow(clc.bold("Warning: ") +
92
+ "This debug token is a secret and should not be shared or uploaded to source code."));
93
+ logger_1.logger.info(clc.yellow("TODO: Remember to delete this token once your testing has finished."));
94
+ return result;
95
+ });
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.command = void 0;
4
+ const clc = require("colorette");
5
+ const command_1 = require("../command");
6
+ const projectUtils_1 = require("../projectUtils");
7
+ const api_1 = require("../appcheck/api");
8
+ const prompts_1 = require("../appcheck/prompts");
9
+ const requireAuth_1 = require("../requireAuth");
10
+ const utils_1 = require("../utils");
11
+ const prompt_1 = require("../prompt");
12
+ const error_1 = require("../error");
13
+ exports.command = new command_1.Command("appcheck:debugtokens:delete <debugTokenId>")
14
+ .description("delete a Firebase App Check debug token for an app")
15
+ .option("--app <appId>", "the app id of your Firebase app")
16
+ .option("--force", "attempt to delete debug token without prompting for confirmation")
17
+ .before(requireAuth_1.requireAuth)
18
+ .action(async (debugTokenId, options) => {
19
+ const { appId } = await (0, prompts_1.getOrPromptProjectAndAppId)(options);
20
+ const projectNumber = await (0, projectUtils_1.needProjectNumber)(options);
21
+ let debugTokenName = debugTokenId;
22
+ if (!debugTokenName.startsWith("projects/")) {
23
+ debugTokenName = `projects/${projectNumber}/apps/${appId}/debugTokens/${debugTokenId}`;
24
+ }
25
+ else {
26
+ const expectedPrefix = `projects/${projectNumber}/apps/${appId}/debugTokens/`;
27
+ if (!debugTokenName.startsWith(expectedPrefix)) {
28
+ throw new error_1.FirebaseError(`Debug token ${debugTokenId} does not belong to app ${appId} in project ${projectNumber}`, { exit: 1 });
29
+ }
30
+ }
31
+ if (!options.force) {
32
+ if (options.nonInteractive) {
33
+ throw new error_1.FirebaseError("Must pass --force to delete in non-interactive mode.", {
34
+ exit: 1,
35
+ });
36
+ }
37
+ const confirmMessage = `You are about to delete App Check debug token ${clc.bold(debugTokenName)}. Do you wish to continue?`;
38
+ const consent = await (0, prompt_1.confirm)({
39
+ message: confirmMessage,
40
+ default: false,
41
+ });
42
+ if (!consent) {
43
+ throw new error_1.FirebaseError("Delete App Check debug token canceled.");
44
+ }
45
+ }
46
+ await (0, utils_1.promiseWithSpinner)(async () => await (0, api_1.deleteDebugToken)(debugTokenName), `Deleting App Check debug token ${clc.bold(debugTokenName)}`);
47
+ (0, utils_1.logSuccess)(`Successfully deleted App Check debug token ${clc.bold(debugTokenName)}`);
48
+ });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.command = void 0;
4
+ const clc = require("colorette");
5
+ const Table = require("cli-table3");
6
+ const command_1 = require("../command");
7
+ const projectUtils_1 = require("../projectUtils");
8
+ const api_1 = require("../appcheck/api");
9
+ const prompts_1 = require("../appcheck/prompts");
10
+ const requireAuth_1 = require("../requireAuth");
11
+ const logger_1 = require("../logger");
12
+ const utils_1 = require("../utils");
13
+ function logDebugTokensList(debugTokens) {
14
+ if (debugTokens.length === 0) {
15
+ logger_1.logger.info(clc.bold("No App Check debug tokens found."));
16
+ return;
17
+ }
18
+ const tableHead = ["Display Name", "Resource Name", "Update Time"];
19
+ const table = new Table({ head: tableHead, style: { head: ["green"] } });
20
+ debugTokens.forEach(({ displayName, name, updateTime }) => {
21
+ table.push([displayName, name, updateTime || "N/A"]);
22
+ });
23
+ logger_1.logger.info(table.toString());
24
+ }
25
+ exports.command = new command_1.Command("appcheck:debugtokens:list")
26
+ .description("list all Firebase App Check debug tokens for an app")
27
+ .option("--app <appId>", "the app id of your Firebase app")
28
+ .before(requireAuth_1.requireAuth)
29
+ .action(async (options) => {
30
+ const { appId } = await (0, prompts_1.getOrPromptProjectAndAppId)(options);
31
+ const projectNumber = await (0, projectUtils_1.needProjectNumber)(options);
32
+ const debugTokens = await (0, utils_1.promiseWithSpinner)(async () => await (0, api_1.listDebugTokens)(projectNumber, appId), `Listing App Check debug tokens for app ${clc.bold(appId)}`);
33
+ logDebugTokensList(debugTokens);
34
+ return debugTokens;
35
+ });
@@ -11,27 +11,6 @@ const error_1 = require("../error");
11
11
  const requireAuth_1 = require("../requireAuth");
12
12
  const logger_1 = require("../logger");
13
13
  const prompt_1 = require("../prompt");
14
- function checkForApps(apps, appPlatform) {
15
- if (!apps.length) {
16
- throw new error_1.FirebaseError(`There are no ${appPlatform === apps_1.AppPlatform.ANY ? "" : appPlatform + " "}apps ` +
17
- "associated with this Firebase project");
18
- }
19
- }
20
- async function selectAppInteractively(apps, appPlatform) {
21
- checkForApps(apps, appPlatform);
22
- const choices = apps.map((app) => {
23
- return {
24
- name: `${app.displayName || app.bundleId || app.packageName}` +
25
- ` - ${app.appId} (${app.platform})`,
26
- value: app,
27
- };
28
- });
29
- return await (0, prompt_1.select)({
30
- message: `Select the ${appPlatform === apps_1.AppPlatform.ANY ? "" : appPlatform + " "}` +
31
- "app to get the configuration data:",
32
- choices,
33
- });
34
- }
35
14
  exports.command = new command_1.Command("apps:sdkconfig [platform] [appId]")
36
15
  .description("print the Google Services config of a Firebase app. " +
37
16
  "[platform] can be IOS, ANDROID or WEB (case insensitive)")
@@ -49,7 +28,7 @@ exports.command = new command_1.Command("apps:sdkconfig [platform] [appId]")
49
28
  projectId = result.projectId;
50
29
  }
51
30
  const apps = await (0, apps_1.listFirebaseApps)(projectId, appPlatform);
52
- checkForApps(apps, appPlatform);
31
+ (0, apps_1.checkForApps)(apps, appPlatform);
53
32
  if (apps.length === 1) {
54
33
  appId = apps[0].appId;
55
34
  appPlatform = apps[0].platform;
@@ -58,7 +37,7 @@ exports.command = new command_1.Command("apps:sdkconfig [platform] [appId]")
58
37
  throw new error_1.FirebaseError(`Project ${projectId} has multiple apps, must specify an app id.`);
59
38
  }
60
39
  else {
61
- const appMetadata = await selectAppInteractively(apps, appPlatform);
40
+ const appMetadata = await (0, apps_1.selectAppInteractively)(apps, appPlatform);
62
41
  appId = appMetadata.appId;
63
42
  appPlatform = appMetadata.platform;
64
43
  }
@@ -91,7 +91,7 @@ exports.command = new command_1.Command("database:get <path>")
91
91
  const fileOut = !!options.output;
92
92
  const outStream = fileOut ? fs.createWriteStream(options.output) : process.stdout;
93
93
  if (res.status >= 400) {
94
- const r = await res.response.text();
94
+ const r = await utils.streamToString(res.body);
95
95
  let d;
96
96
  try {
97
97
  d = JSON.parse(r);
@@ -23,7 +23,7 @@ const logger_1 = require("../logger");
23
23
  const responseToError_1 = require("../responseToError");
24
24
  let stdinUsedFor = undefined;
25
25
  exports.command = new command_1.Command("dataconnect:execute [file] [operationName]")
26
- .description("execute a SQL Connect query or mutation. If FIREBASE_DATACONNECT_EMULATOR_HOST is set (such as during 'firebase emulator:exec', executes against the emulator instead.")
26
+ .description(`execute a SQL Connect query or mutation. If ${constants_1.Constants.FIREBASE_DATACONNECT_EMULATOR_HOST} is set (such as during 'firebase emulator:exec'), executes against the emulator instead.`)
27
27
  .option("--service <serviceId>", "The service ID to execute against (optional if there's only one service)")
28
28
  .option("--location <locationId>", "The location ID to execute against (optional if there's only one service). Ignored by the emulator.")
29
29
  .option("--vars, --variables <vars>", "Supply variables to the operation execution, which must be a JSON object whose keys are variable names. If vars begin with the character @, the rest is interpreted as a file name to read from, or - to read from stdin.")
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.command = exports.TARGET_PERMISSIONS = exports.VALID_DEPLOY_TARGETS = void 0;
3
+ exports.command = void 0;
4
4
  const requireDatabaseInstance_1 = require("../requireDatabaseInstance");
5
5
  const requirePermissions_1 = require("../requirePermissions");
6
6
  const checkIam_1 = require("../deploy/functions/checkIam");
@@ -17,69 +17,32 @@ const interactive_1 = require("../hosting/interactive");
17
17
  const utils_1 = require("../utils");
18
18
  const api_1 = require("../hosting/api");
19
19
  const experiments = require("../experiments");
20
- exports.VALID_DEPLOY_TARGETS = [
21
- "database",
22
- "storage",
23
- "firestore",
24
- "functions",
25
- "hosting",
26
- "remoteconfig",
27
- "extensions",
28
- "dataconnect",
29
- "apphosting",
30
- "auth",
31
- ];
32
- exports.TARGET_PERMISSIONS = {
33
- database: ["firebasedatabase.instances.update"],
34
- hosting: ["firebasehosting.sites.update"],
35
- functions: [
36
- "cloudfunctions.functions.list",
37
- "cloudfunctions.functions.create",
38
- "cloudfunctions.functions.get",
39
- "cloudfunctions.functions.update",
40
- "cloudfunctions.functions.delete",
41
- "cloudfunctions.operations.get",
42
- ],
43
- firestore: [
44
- "datastore.indexes.list",
45
- "datastore.indexes.create",
46
- "datastore.indexes.update",
47
- "datastore.indexes.delete",
48
- ],
49
- storage: [
50
- "firebaserules.releases.create",
51
- "firebaserules.rulesets.create",
52
- "firebaserules.releases.update",
53
- ],
54
- remoteconfig: ["cloudconfig.configs.get", "cloudconfig.configs.update"],
55
- dataconnect: [
56
- "cloudsql.databases.create",
57
- "cloudsql.databases.update",
58
- "cloudsql.instances.connect",
59
- "cloudsql.instances.create",
60
- "cloudsql.instances.get",
61
- "cloudsql.instances.list",
62
- "cloudsql.instances.update",
63
- "cloudsql.users.create",
64
- "firebasedataconnect.connectors.create",
65
- "firebasedataconnect.connectors.delete",
66
- "firebasedataconnect.connectors.list",
67
- "firebasedataconnect.connectors.update",
68
- "firebasedataconnect.operations.get",
69
- "firebasedataconnect.services.create",
70
- "firebasedataconnect.services.delete",
71
- "firebasedataconnect.services.update",
72
- "firebasedataconnect.services.list",
73
- "firebasedataconnect.schemas.create",
74
- "firebasedataconnect.schemas.delete",
75
- "firebasedataconnect.schemas.list",
76
- "firebasedataconnect.schemas.update",
77
- ],
78
- apphosting: [],
79
- auth: ["firebase.projects.update", "firebaseauth.configs.update"],
80
- };
20
+ const clc = require("colorette");
21
+ function getDeployHelp() {
22
+ const boldFn = (str) => clc.bold(str);
23
+ let targetHelp = "Deploy targets include:\n\n";
24
+ for (const [targetName, target] of Object.entries(deploy_1.TARGETS)) {
25
+ const desc = target.help || `Deploy ${targetName} resources`;
26
+ const formattedDesc = desc
27
+ .split("\n")
28
+ .map((line, i) => {
29
+ if (i === 0)
30
+ return line;
31
+ return " " + line;
32
+ })
33
+ .join("\n");
34
+ targetHelp += ` ${boldFn(targetName.padEnd(14))} ${formattedDesc}\n`;
35
+ }
36
+ targetHelp +=
37
+ "\nTo deploy specific targets, use `--only` followed by a comma-separated list of targets.\n";
38
+ targetHelp += `For example, ${boldFn("firebase deploy --only hosting,firestore")}.\n`;
39
+ targetHelp += `\nTo see detailed setup and configuration information for a specific target, run:\n`;
40
+ targetHelp += ` ${boldFn("firebase deploy:<target> --help")}`;
41
+ return targetHelp;
42
+ }
81
43
  exports.command = new command_1.Command("deploy")
82
44
  .description("deploy code and assets to your Firebase project")
45
+ .help(getDeployHelp())
83
46
  .withForce("delete Cloud Functions missing from the current working directory and bypass interactive prompts")
84
47
  .option("-p, --public <path>", "override the Hosting public directory specified in firebase.json")
85
48
  .option("-m, --message <message>", "an optional message describing this deploy")
@@ -100,9 +63,9 @@ if (experiments.isEnabled("apphostinglocalbuilds")) {
100
63
  exports.command
101
64
  .before(requireConfig_1.requireConfig)
102
65
  .before((options) => {
103
- options.filteredTargets = (0, filterTargets_1.filterTargets)(options, exports.VALID_DEPLOY_TARGETS);
66
+ options.filteredTargets = (0, filterTargets_1.filterTargets)(options, [...deploy_1.VALID_DEPLOY_TARGETS]);
104
67
  const permissions = options.filteredTargets.reduce((perms, target) => {
105
- return perms.concat(exports.TARGET_PERMISSIONS[target]);
68
+ return perms.concat(deploy_1.TARGET_PERMISSIONS[target]);
106
69
  }, []);
107
70
  return (0, requirePermissions_1.requirePermissions)(options, permissions);
108
71
  })
@@ -19,6 +19,11 @@ function load(client) {
19
19
  return runner;
20
20
  }
21
21
  const t0 = process.hrtime.bigint();
22
+ client.appcheck = {};
23
+ client.appcheck.debugtokens = {};
24
+ client.appcheck.debugtokens.create = loadCommand("appcheck-debugtokens-create");
25
+ client.appcheck.debugtokens.list = loadCommand("appcheck-debugtokens-list");
26
+ client.appcheck.debugtokens.delete = loadCommand("appcheck-debugtokens-delete");
22
27
  client.appdistribution = {};
23
28
  client.appdistribution.distribute = loadCommand("appdistribution-distribute");
24
29
  client.appdistribution.testers = {};
@@ -214,6 +219,16 @@ function load(client) {
214
219
  client.apphosting.rollouts.list = loadCommand("apphosting-rollouts-list");
215
220
  }
216
221
  }
222
+ if (experiments.isEnabled("ailogic")) {
223
+ client.ailogic = {};
224
+ client.ailogic.providers = {};
225
+ client.ailogic.providers.enable = loadCommand("ailogic-providers-enable");
226
+ client.ailogic.providers.disable = loadCommand("ailogic-providers-disable");
227
+ client.ailogic.providers.list = loadCommand("ailogic-providers-list");
228
+ client.ailogic.config = {};
229
+ client.ailogic.config.get = loadCommand("ailogic-config-get");
230
+ client.ailogic.config.set = loadCommand("ailogic-config-set");
231
+ }
217
232
  client.login = loadCommand("login");
218
233
  client.login.add = loadCommand("login-add");
219
234
  client.login.ci = loadCommand("login-ci");
@@ -1,9 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  const prepare_1 = require("./prepare");
5
5
  exports.prepare = prepare_1.default;
6
6
  const deploy_1 = require("./deploy");
7
7
  exports.deploy = deploy_1.default;
8
8
  const release_1 = require("./release");
9
9
  exports.release = release_1.default;
10
+ exports.help = "Deploys framework-centered web apps. See https://firebase.google.com/docs/app-hosting/frameworks-tooling#web-frameworks-and-app-hosting for a full list of supported frameworks.";
11
+ exports.detailedHelp = "App Hosting deploys Frameworks-based web application backends.\n\n" +
12
+ "Single backend configuration in firebase.json:\n" +
13
+ "{\n" +
14
+ ' "apphosting": {\n' +
15
+ ' "backendId": "my-backend-id",\n' +
16
+ ' "rootDir": ".",\n' +
17
+ ' "ignore": ["node_modules", ".git"]\n' +
18
+ " }\n" +
19
+ "}\n\n" +
20
+ "Multiple backends configuration:\n" +
21
+ "{\n" +
22
+ ' "apphosting": [\n' +
23
+ " {\n" +
24
+ ' "backendId": "my-backend-1",\n' +
25
+ ' "rootDir": "apps/backend-1",\n' +
26
+ ' "ignore": ["node_modules"]\n' +
27
+ " },\n" +
28
+ " {\n" +
29
+ ' "backendId": "my-backend-2",\n' +
30
+ ' "rootDir": "apps/backend-2",\n' +
31
+ ' "ignore": ["node_modules"]\n' +
32
+ " }\n" +
33
+ " ]\n" +
34
+ "}";
@@ -1,9 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  var prepare_1 = require("./prepare");
5
5
  Object.defineProperty(exports, "prepare", { enumerable: true, get: function () { return prepare_1.prepare; } });
6
6
  var deploy_1 = require("./deploy");
7
7
  Object.defineProperty(exports, "deploy", { enumerable: true, get: function () { return deploy_1.deploy; } });
8
8
  var release_1 = require("./release");
9
9
  Object.defineProperty(exports, "release", { enumerable: true, get: function () { return release_1.release; } });
10
+ exports.help = "Deploys configuration settings for Firebase Authentication providers.";
11
+ exports.detailedHelp = "Firebase Authentication configures identity providers and sign-in methods.\n\n" +
12
+ "Configuration format in firebase.json:\n" +
13
+ "{\n" +
14
+ ' "auth": {\n' +
15
+ ' "providers": {\n' +
16
+ ' "anonymous": true,\n' +
17
+ ' "emailPassword": true,\n' +
18
+ ' "googleSignIn": {\n' +
19
+ ' "authorizedRedirectUris": [\n' +
20
+ ' "https://my-app.firebaseapp.com/__/auth/handler"\n' +
21
+ " ],\n" +
22
+ ' "supportEmail": "support@example.com"\n' +
23
+ " }\n" +
24
+ " }\n" +
25
+ " }\n" +
26
+ "}";
@@ -1,9 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  var prepare_1 = require("./prepare");
5
5
  Object.defineProperty(exports, "prepare", { enumerable: true, get: function () { return prepare_1.prepare; } });
6
6
  var deploy_1 = require("./deploy");
7
7
  Object.defineProperty(exports, "deploy", { enumerable: true, get: function () { return deploy_1.deploy; } });
8
8
  var release_1 = require("./release");
9
9
  Object.defineProperty(exports, "release", { enumerable: true, get: function () { return release_1.release; } });
10
+ exports.help = "Deploys security rules referenced by your project's firebase.json.";
11
+ exports.detailedHelp = "Realtime Database deploys rules to database instances.\n\n" +
12
+ "Single database configuration in firebase.json:\n" +
13
+ "{\n" +
14
+ ' "database": {\n' +
15
+ ' "rules": "database.rules"\n' +
16
+ " }\n" +
17
+ "}\n\n" +
18
+ "Multiple database instances configuration (by target or database ID):\n" +
19
+ "{\n" +
20
+ ' "database": [\n' +
21
+ ' { "target": "my-db-target", "rules": "rules.rules" },\n' +
22
+ ' { "database": "my-database-id", "rules": "rules2.rules" }\n' +
23
+ " ]\n" +
24
+ "}";
@@ -1,9 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  const prepare_1 = require("./prepare");
5
5
  exports.prepare = prepare_1.default;
6
6
  const deploy_1 = require("./deploy");
7
7
  exports.deploy = deploy_1.default;
8
8
  const release_1 = require("./release");
9
9
  exports.release = release_1.default;
10
+ exports.help = "Deploys Data Connect services, schemas, and connectors. Supports filtering:\n" +
11
+ " --only dataconnect:serviceId\n" +
12
+ " --only dataconnect:serviceId:connectorId\n" +
13
+ " --only dataconnect:serviceId:schema";
14
+ exports.detailedHelp = "Firebase Data Connect deploys services, GraphQL schemas, and connectors.\n\n" +
15
+ "Single service configuration in firebase.json:\n" +
16
+ "{\n" +
17
+ ' "dataconnect": {\n' +
18
+ ' "source": "dataconnect"\n' +
19
+ " }\n" +
20
+ "}\n\n" +
21
+ "Multiple services configuration:\n" +
22
+ "{\n" +
23
+ ' "dataconnect": [\n' +
24
+ ' { "source": "dataconnect-service-1" },\n' +
25
+ ' { "source": "dataconnect-service-2" }\n' +
26
+ " ]\n" +
27
+ "}";
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  var prepare_1 = require("./prepare");
5
5
  Object.defineProperty(exports, "prepare", { enumerable: true, get: function () { return prepare_1.prepare; } });
6
6
  var deploy_1 = require("./deploy");
7
7
  Object.defineProperty(exports, "deploy", { enumerable: true, get: function () { return deploy_1.deploy; } });
8
8
  var release_1 = require("./release");
9
9
  Object.defineProperty(exports, "release", { enumerable: true, get: function () { return release_1.release; } });
10
+ exports.help = "Deploys configuration changes to your installed Extension instances.";
11
+ exports.detailedHelp = "Firebase Extensions deploys settings and configuration environments for installed extension instances.\n\n" +
12
+ "Configuration format in firebase.json:\n" +
13
+ "{\n" +
14
+ ' "extensions": {\n' +
15
+ ' "my-extension-instance-id": "firebase/storage-resize-images@^0.1.0"\n' +
16
+ " }\n" +
17
+ "}";
@@ -1,9 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.release = exports.deploy = exports.prepare = void 0;
3
+ exports.detailedHelp = exports.help = exports.release = exports.deploy = exports.prepare = void 0;
4
4
  const prepare_1 = require("./prepare");
5
5
  exports.prepare = prepare_1.default;
6
6
  const deploy_1 = require("./deploy");
7
7
  exports.deploy = deploy_1.default;
8
8
  const release_1 = require("./release");
9
9
  exports.release = release_1.default;
10
+ exports.help = "Deploys security rules and indexes referenced by your project's firebase.json.";
11
+ exports.detailedHelp = "Cloud Firestore deploys security rules and indexes to Firestore databases.\n\n" +
12
+ "Single database configuration in firebase.json:\n" +
13
+ "{\n" +
14
+ ' "firestore": {\n' +
15
+ ' "rules": "firestore.rules",\n' +
16
+ ' "indexes": "firestore.indexes.json",\n' +
17
+ ' "location": "us-east1",\n' +
18
+ ' "edition": "standard",\n' +
19
+ ' "dataAccessMode": "FIRESTORE_NATIVE"\n' +
20
+ " }\n" +
21
+ "}\n\n" +
22
+ "Multiple databases configuration (by target or database ID):\n" +
23
+ "{\n" +
24
+ ' "firestore": [\n' +
25
+ ' { "target": "my-firestore-target", "rules": "firestore.rules", "indexes": "indexes.json" },\n' +
26
+ ' { "database": "another-db", "rules": "another.rules", "indexes": "another.indexes.json", "location": "europe-west1", "edition": "enterprise", "dataAccessMode": "MONGODB_COMPATIBLE" }\n' +
27
+ " ]\n" +
28
+ "}";