firebase-tools-with-isolate 13.29.1 → 14.10.1-1
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.
- package/README.md +53 -4
- package/lib/api.js +10 -2
- package/lib/appdistribution/client.js +2 -2
- package/lib/apphosting/backend.js +157 -55
- package/lib/apphosting/config.js +121 -101
- package/lib/apphosting/githubConnections.js +65 -100
- package/lib/apphosting/repo.js +22 -36
- package/lib/apphosting/rollout.js +5 -11
- package/lib/apphosting/secrets/dialogs.js +13 -11
- package/lib/apphosting/secrets/index.js +47 -5
- package/lib/apphosting/utils.js +1 -3
- package/lib/apphosting/yaml.js +35 -49
- package/lib/auth.js +23 -6
- package/lib/bin/cli.js +99 -0
- package/lib/bin/firebase.js +7 -123
- package/lib/bin/mcp.js +49 -0
- package/lib/checkValidTargetFilters.js +1 -0
- package/lib/command.js +3 -2
- package/lib/commands/appdistribution-distribute.js +1 -1
- package/lib/commands/appdistribution-groups-create.js +1 -1
- package/lib/commands/appdistribution-groups-delete.js +1 -1
- package/lib/commands/appdistribution-groups-list.js +2 -2
- package/lib/commands/appdistribution-testers-add.js +1 -1
- package/lib/commands/appdistribution-testers-list.js +3 -3
- package/lib/commands/appdistribution-testers-remove.js +1 -1
- package/lib/commands/apphosting-backends-create.js +3 -3
- package/lib/commands/apphosting-backends-delete.js +23 -27
- package/lib/commands/apphosting-backends-get.js +12 -12
- package/lib/commands/apphosting-backends-list.js +5 -5
- package/lib/commands/apphosting-builds-create.js +8 -2
- package/lib/commands/apphosting-builds-get.js +8 -1
- package/lib/commands/apphosting-rollouts-create.js +3 -3
- package/lib/commands/apphosting-rollouts-list.js +8 -2
- package/lib/commands/apphosting-secrets-access.js +1 -1
- package/lib/commands/apphosting-secrets-describe.js +2 -2
- package/lib/commands/apphosting-secrets-grantaccess.js +20 -10
- package/lib/commands/apphosting-secrets-set.js +27 -1
- package/lib/commands/apps-android-sha-create.js +1 -1
- package/lib/commands/apps-android-sha-delete.js +1 -1
- package/lib/commands/apps-android-sha-list.js +2 -2
- package/lib/commands/apps-create.js +4 -108
- package/lib/commands/apps-init.js +94 -0
- package/lib/commands/apps-list.js +1 -1
- package/lib/commands/apps-sdkconfig.js +5 -10
- package/lib/commands/auth-export.js +1 -1
- package/lib/commands/auth-import.js +1 -1
- package/lib/commands/database-import.js +4 -6
- package/lib/commands/database-instances-create.js +1 -1
- package/lib/commands/database-instances-list.js +1 -1
- package/lib/commands/database-profile.js +1 -2
- package/lib/commands/database-remove.js +4 -6
- package/lib/commands/database-set.js +6 -6
- package/lib/commands/database-settings-set.js +1 -1
- package/lib/commands/database-update.js +6 -6
- package/lib/commands/dataconnect-sdk-generate.js +5 -2
- package/lib/commands/dataconnect-services-list.js +2 -2
- package/lib/commands/dataconnect-sql-diff.js +2 -2
- package/lib/commands/dataconnect-sql-grant.js +3 -3
- package/lib/commands/dataconnect-sql-migrate.js +2 -2
- package/lib/commands/dataconnect-sql-setup.js +39 -0
- package/lib/commands/dataconnect-sql-shell.js +5 -7
- package/lib/commands/deploy.js +4 -3
- package/lib/commands/emulators-exec.js +1 -1
- package/lib/commands/emulators-start.js +4 -3
- package/lib/commands/experiments-list.js +1 -1
- package/lib/commands/ext-dev-deprecate.js +1 -0
- package/lib/commands/ext-dev-init.js +3 -12
- package/lib/commands/ext-dev-list.js +1 -1
- package/lib/commands/ext-dev-register.js +3 -5
- package/lib/commands/ext-dev-undeprecate.js +1 -2
- package/lib/commands/ext-dev-usage.js +4 -6
- package/lib/commands/ext-export.js +1 -2
- package/lib/commands/ext-install.js +3 -3
- package/lib/commands/ext-sdk-install.js +1 -0
- package/lib/commands/ext-update.js +1 -0
- package/lib/commands/firestore-backups-delete.js +3 -4
- package/lib/commands/firestore-backups-get.js +1 -1
- package/lib/commands/firestore-backups-list.js +2 -2
- package/lib/commands/firestore-backups-schedules-create.js +4 -4
- package/lib/commands/firestore-backups-schedules-delete.js +3 -4
- package/lib/commands/firestore-backups-schedules-list.js +2 -2
- package/lib/commands/firestore-backups-schedules-update.js +1 -1
- package/lib/commands/firestore-databases-create.js +6 -6
- package/lib/commands/firestore-databases-delete.js +3 -7
- package/lib/commands/firestore-databases-get.js +1 -1
- package/lib/commands/firestore-databases-list.js +1 -1
- package/lib/commands/firestore-databases-restore.js +5 -5
- package/lib/commands/firestore-databases-update.js +4 -4
- package/lib/commands/firestore-delete.js +13 -14
- package/lib/commands/firestore-indexes-list.js +4 -4
- package/lib/commands/firestore-locations.js +1 -1
- package/lib/commands/functions-artifacts-setpolicy.js +132 -0
- package/lib/commands/functions-config-export.js +6 -10
- package/lib/commands/functions-delete.js +5 -7
- package/lib/commands/functions-deletegcfartifacts.js +5 -5
- package/lib/commands/functions-list.js +24 -33
- package/lib/commands/functions-secrets-access.js +1 -1
- package/lib/commands/functions-secrets-describe.js +1 -1
- package/lib/commands/functions-secrets-destroy.js +10 -12
- package/lib/commands/functions-secrets-get.js +1 -1
- package/lib/commands/functions-secrets-prune.js +14 -15
- package/lib/commands/functions-secrets-set.js +14 -18
- package/lib/commands/hosting-channel-create.js +1 -2
- package/lib/commands/hosting-channel-delete.js +4 -4
- package/lib/commands/hosting-channel-list.js +1 -1
- package/lib/commands/hosting-channel-open.js +2 -3
- package/lib/commands/hosting-disable.js +5 -5
- package/lib/commands/hosting-sites-delete.js +4 -4
- package/lib/commands/hosting-sites-get.js +1 -1
- package/lib/commands/hosting-sites-list.js +1 -1
- package/lib/commands/index.js +7 -4
- package/lib/commands/init.js +54 -60
- package/lib/commands/internaltesting-frameworks-compose.js +1 -1
- package/lib/commands/login-use.js +2 -11
- package/lib/commands/login.js +10 -8
- package/lib/commands/logout.js +2 -3
- package/lib/commands/mcp.js +11 -0
- package/lib/commands/open.js +4 -2
- package/lib/commands/projects-create.js +1 -2
- package/lib/commands/projects-list.js +1 -1
- package/lib/commands/remoteconfig-get.js +1 -1
- package/lib/commands/remoteconfig-rollback.js +5 -5
- package/lib/commands/remoteconfig-versions-list.js +2 -2
- package/lib/commands/setup-emulators-database.js +1 -1
- package/lib/commands/setup-emulators-dataconnect.js +1 -1
- package/lib/commands/setup-emulators-firestore.js +1 -1
- package/lib/commands/setup-emulators-pubsub.js +1 -1
- package/lib/commands/setup-emulators-storage.js +1 -1
- package/lib/commands/setup-emulators-ui.js +1 -1
- package/lib/commands/use.js +115 -111
- package/lib/config.js +49 -33
- package/lib/crashlytics/buildToolsJarHelper.js +1 -1
- package/lib/crashlytics/listTopIssues.js +45 -0
- package/lib/dataconnect/build.js +61 -4
- package/lib/dataconnect/client.js +26 -17
- package/lib/dataconnect/cloudAICompanionClient.js +72 -0
- package/lib/dataconnect/dataplaneClient.js +19 -2
- package/lib/dataconnect/ensureApis.js +6 -3
- package/lib/dataconnect/fileUtils.js +39 -6
- package/lib/dataconnect/freeTrial.js +21 -9
- package/lib/dataconnect/graphqlError.js +56 -2
- package/lib/dataconnect/provisionCloudSql.js +23 -12
- package/lib/dataconnect/schemaMigration.js +46 -26
- package/lib/dataconnect/types.js +5 -1
- package/lib/defaultCredentials.js +12 -1
- package/lib/deploy/apphosting/args.js +2 -0
- package/lib/deploy/apphosting/deploy.js +77 -0
- package/lib/deploy/apphosting/index.js +9 -0
- package/lib/deploy/apphosting/prepare.js +138 -0
- package/lib/deploy/apphosting/release.js +56 -0
- package/lib/deploy/apphosting/util.js +65 -0
- package/lib/deploy/dataconnect/deploy.js +14 -7
- package/lib/deploy/dataconnect/prepare.js +3 -5
- package/lib/deploy/extensions/v2FunctionHelper.js +2 -1
- package/lib/deploy/firestore/deploy.js +50 -4
- package/lib/deploy/functions/build.js +1 -0
- package/lib/deploy/functions/checkIam.js +41 -6
- package/lib/deploy/functions/containerCleaner.js +17 -2
- package/lib/deploy/functions/ensure.js +2 -1
- package/lib/deploy/functions/params.js +10 -17
- package/lib/deploy/functions/prepare.js +51 -18
- package/lib/deploy/functions/prepareFunctionsUpload.js +9 -5
- package/lib/deploy/functions/prompts.js +24 -17
- package/lib/deploy/functions/release/fabricator.js +4 -4
- package/lib/deploy/functions/release/index.js +27 -9
- package/lib/deploy/functions/release/planner.js +1 -0
- package/lib/deploy/functions/runtimes/discovery/index.js +13 -5
- package/lib/deploy/functions/runtimes/discovery/v1alpha1.js +4 -4
- package/lib/deploy/functions/runtimes/python/index.js +4 -1
- package/lib/deploy/functions/runtimes/supported/types.js +17 -11
- package/lib/deploy/functions/services/firestore.js +23 -4
- package/lib/deploy/index.js +29 -10
- package/lib/deploy/lifecycleHooks.js +6 -12
- package/lib/emulator/ExpressBasedEmulator.js +1 -1
- package/lib/emulator/apphosting/config.js +15 -14
- package/lib/emulator/apphosting/index.js +2 -0
- package/lib/emulator/apphosting/serve.js +147 -10
- package/lib/emulator/auth/cloudFunctions.js +13 -1
- package/lib/emulator/auth/operations.js +2 -1
- package/lib/emulator/auth/widget_ui.js +2 -1
- package/lib/emulator/commandUtils.js +14 -20
- package/lib/emulator/constants.js +2 -0
- package/lib/emulator/controller.js +24 -9
- package/lib/emulator/dataconnect/pgliteServer.js +136 -45
- package/lib/emulator/dataconnectEmulator.js +34 -6
- package/lib/emulator/dataconnectToolkitController.js +5 -0
- package/lib/emulator/downloadableEmulatorInfo.json +81 -0
- package/lib/emulator/downloadableEmulators.js +28 -80
- package/lib/emulator/env.js +47 -1
- package/lib/emulator/extensionsEmulator.js +5 -3
- package/lib/emulator/functionsEmulator.js +6 -26
- package/lib/emulator/hub.js +5 -4
- package/lib/emulator/hubClient.js +5 -0
- package/lib/emulator/initEmulators.js +29 -15
- package/lib/emulator/ui.js +4 -8
- package/lib/ensureApiEnabled.js +32 -1
- package/lib/experiments.js +11 -12
- package/lib/extensions/askUserForEventsConfig.js +6 -15
- package/lib/extensions/askUserForParam.js +23 -52
- package/lib/extensions/change-log.js +1 -25
- package/lib/extensions/checkProjectBilling.js +3 -9
- package/lib/extensions/diagnose.js +3 -6
- package/lib/extensions/emulator/triggerHelper.js +4 -0
- package/lib/extensions/extensionsHelper.js +25 -31
- package/lib/extensions/listExtensions.js +1 -1
- package/lib/extensions/manifest.js +3 -7
- package/lib/extensions/paramHelper.js +11 -2
- package/lib/extensions/provisioningHelper.js +1 -1
- package/lib/extensions/tos.js +4 -2
- package/lib/extensions/utils.js +1 -10
- package/lib/firebaseConfigValidate.js +7 -5
- package/lib/firestore/delete.js +5 -4
- package/lib/firestore/pretty-print.js +1 -1
- package/lib/frameworks/angular/index.js +11 -6
- package/lib/frameworks/angular/utils.js +76 -47
- package/lib/frameworks/constants.js +1 -1
- package/lib/frameworks/index.js +6 -4
- package/lib/frameworks/next/index.js +7 -4
- package/lib/frameworks/utils.js +11 -3
- package/lib/frameworks/vite/index.js +2 -3
- package/lib/fsAsync.js +9 -2
- package/lib/fsutils.js +16 -1
- package/lib/functions/artifacts.js +196 -0
- package/lib/functions/secrets.js +15 -16
- package/lib/gcp/apphosting.js +13 -1
- package/lib/gcp/artifactregistry.js +27 -2
- package/lib/gcp/auth.js +113 -1
- package/lib/gcp/cloudbilling.js +12 -1
- package/lib/gcp/cloudfunctions.js +32 -4
- package/lib/gcp/cloudfunctionsv2.js +15 -9
- package/lib/gcp/cloudscheduler.js +2 -2
- package/lib/gcp/cloudsql/cloudsqladmin.js +32 -11
- package/lib/gcp/cloudsql/connect.js +21 -14
- package/lib/gcp/cloudsql/interactive.js +1 -1
- package/lib/gcp/cloudsql/permissions.js +46 -99
- package/lib/gcp/cloudsql/permissionsSetup.js +224 -0
- package/lib/gcp/computeEngine.js +19 -2
- package/lib/gcp/devConnect.js +6 -1
- package/lib/gcp/firestore.js +55 -16
- package/lib/gcp/iam.js +1 -5
- package/lib/gcp/proto.js +4 -3
- package/lib/gcp/run.js +18 -1
- package/lib/gcp/serviceusage.js +2 -1
- package/lib/gcp/storage.js +47 -1
- package/lib/gemini/fdcExperience.js +56 -0
- package/lib/gemini/types.js +2 -0
- package/lib/hosting/api.js +4 -0
- package/lib/hosting/implicitInit.js +7 -3
- package/lib/hosting/interactive.js +2 -3
- package/lib/index.js +1 -2
- package/lib/init/features/account.js +2 -4
- package/lib/init/features/apphosting.js +75 -6
- package/lib/init/features/database.js +63 -62
- package/lib/init/features/dataconnect/index.js +131 -85
- package/lib/init/features/dataconnect/sdk.js +73 -18
- package/lib/init/features/emulators.js +29 -46
- package/lib/init/features/firestore/index.js +79 -43
- package/lib/init/features/firestore/indexes.js +30 -45
- package/lib/init/features/firestore/rules.js +36 -62
- package/lib/init/features/functions/index.js +11 -16
- package/lib/init/features/functions/javascript.js +17 -30
- package/lib/init/features/functions/npm-dependencies.js +4 -8
- package/lib/init/features/functions/python.js +1 -3
- package/lib/init/features/functions/typescript.js +25 -43
- package/lib/init/features/genkit/index.js +111 -106
- package/lib/init/features/hosting/github.js +22 -52
- package/lib/init/features/hosting/index.js +37 -57
- package/lib/init/features/index.js +10 -5
- package/lib/init/features/project.js +18 -21
- package/lib/init/features/remoteconfig.js +5 -10
- package/lib/init/features/storage.js +30 -10
- package/lib/init/index.js +79 -24
- package/lib/logger.js +76 -3
- package/lib/management/apps.js +292 -7
- package/lib/management/projects.js +100 -52
- package/lib/mcp/errors.js +20 -0
- package/lib/mcp/index.js +227 -0
- package/lib/mcp/tool.js +12 -0
- package/lib/mcp/tools/apphosting/fetch_logs.js +68 -0
- package/lib/mcp/tools/apphosting/index.js +6 -0
- package/lib/mcp/tools/apphosting/list_backends.js +51 -0
- package/lib/mcp/tools/auth/disable_user.js +30 -0
- package/lib/mcp/tools/auth/get_user.js +38 -0
- package/lib/mcp/tools/auth/index.js +15 -0
- package/lib/mcp/tools/auth/list_users.js +36 -0
- package/lib/mcp/tools/auth/set_claims.js +43 -0
- package/lib/mcp/tools/auth/set_sms_region_policy.js +36 -0
- package/lib/mcp/tools/core/consult_assistant.js +28 -0
- package/lib/mcp/tools/core/create_android_sha.js +43 -0
- package/lib/mcp/tools/core/create_app.js +90 -0
- package/lib/mcp/tools/core/create_project.js +68 -0
- package/lib/mcp/tools/core/get_admin_sdk_config.js +26 -0
- package/lib/mcp/tools/core/get_environment.js +51 -0
- package/lib/mcp/tools/core/get_project.js +22 -0
- package/lib/mcp/tools/core/get_sdk_config.js +40 -0
- package/lib/mcp/tools/core/index.js +29 -0
- package/lib/mcp/tools/core/init.js +153 -0
- package/lib/mcp/tools/core/list_apps.js +34 -0
- package/lib/mcp/tools/core/list_projects.js +45 -0
- package/lib/mcp/tools/core/update_environment.js +55 -0
- package/lib/mcp/tools/crashlytics/index.js +5 -0
- package/lib/mcp/tools/crashlytics/list_top_issues.js +39 -0
- package/lib/mcp/tools/dataconnect/converter.js +60 -0
- package/lib/mcp/tools/dataconnect/emulator.js +16 -0
- package/lib/mcp/tools/dataconnect/execute_graphql.js +48 -0
- package/lib/mcp/tools/dataconnect/execute_graphql_read.js +48 -0
- package/lib/mcp/tools/dataconnect/execute_mutation.js +62 -0
- package/lib/mcp/tools/dataconnect/execute_query.js +62 -0
- package/lib/mcp/tools/dataconnect/generate_operation.js +34 -0
- package/lib/mcp/tools/dataconnect/generate_schema.js +26 -0
- package/lib/mcp/tools/dataconnect/get_connector.js +31 -0
- package/lib/mcp/tools/dataconnect/get_schema.js +31 -0
- package/lib/mcp/tools/dataconnect/index.js +23 -0
- package/lib/mcp/tools/dataconnect/list_services.js +23 -0
- package/lib/mcp/tools/firestore/converter.js +102 -0
- package/lib/mcp/tools/firestore/delete_document.js +50 -0
- package/lib/mcp/tools/firestore/get_documents.js +58 -0
- package/lib/mcp/tools/firestore/index.js +17 -0
- package/lib/mcp/tools/firestore/list_collections.js +36 -0
- package/lib/mcp/tools/firestore/query_collection.js +132 -0
- package/lib/mcp/tools/index.js +62 -0
- package/lib/mcp/tools/messaging/index.js +5 -0
- package/lib/mcp/tools/messaging/send_message.js +42 -0
- package/lib/mcp/tools/remoteconfig/get_template.js +27 -0
- package/lib/mcp/tools/remoteconfig/index.js +7 -0
- package/lib/mcp/tools/remoteconfig/publish_template.js +34 -0
- package/lib/mcp/tools/remoteconfig/rollback_template.js +29 -0
- package/lib/mcp/tools/rules/get_rules.js +29 -0
- package/lib/mcp/tools/rules/validate_rules.js +97 -0
- package/lib/mcp/tools/storage/get_download_url.js +40 -0
- package/lib/mcp/tools/storage/get_rules.js +26 -0
- package/lib/mcp/tools/storage/index.js +11 -0
- package/lib/mcp/types.js +13 -0
- package/lib/mcp/util.js +214 -0
- package/lib/mcp/util.test.js +468 -0
- package/lib/messaging/interfaces.js +2 -0
- package/lib/messaging/sendMessage.js +48 -0
- package/lib/operation-poller.js +3 -1
- package/lib/profileReport.js +1 -1
- package/lib/prompt.js +86 -54
- package/lib/remoteconfig/publish.js +39 -0
- package/lib/requireAuth.js +2 -2
- package/lib/requireTosAcceptance.js +4 -0
- package/lib/rulesDeploy.js +10 -15
- package/lib/track.js +7 -37
- package/lib/utils.js +28 -41
- package/lib/vsCodeUtils.js +7 -3
- package/package.json +31 -15
- package/schema/connector-yaml.json +12 -0
- package/schema/dataconnect-yaml.json +5 -0
- package/schema/extension-yaml.json +17 -4
- package/schema/firebase-config.json +1117 -2121
- package/standalone/package-lock.json +1255 -992
- package/standalone/package.json +1 -1
- package/templates/dataconnect-prompts/operation-generation-cursor-windsurf-rule.txt +273 -0
- package/templates/dataconnect-prompts/schema-generation-cursor-windsurf-rule.txt +653 -0
- package/templates/genkit/firebase.0.9.0.template +1 -1
- package/templates/genkit/firebase.1.0.0.template +71 -0
- package/templates/init/dataconnect/connector.yaml +4 -1
- package/templates/init/dataconnect/dataconnect.yaml +1 -1
- package/templates/init/dataconnect/mutations.gql +9 -26
- package/templates/init/dataconnect/queries.gql +9 -14
- package/templates/init/dataconnect/schema.gql +28 -21
- package/templates/init/firestore/firestore.rules +2 -0
- package/templates/init/functions/javascript/index.js +14 -1
- package/templates/init/functions/javascript/package.lint.json +1 -1
- package/templates/init/functions/javascript/package.nolint.json +1 -1
- package/templates/init/functions/python/_gitignore +6 -1
- package/templates/init/functions/python/main.py +8 -0
- package/templates/init/functions/typescript/index.ts +14 -1
- package/templates/init/functions/typescript/package.lint.json +2 -2
- package/templates/init/functions/typescript/package.nolint.json +3 -3
- package/lib/commands/apphosting-config-export.js +0 -28
- package/lib/commands/experimental-functions-shell.js +0 -13
- package/lib/emulator/dataconnect/pg-gateway/auth/base-auth-flow.js +0 -11
- package/lib/emulator/dataconnect/pg-gateway/auth/cert.js +0 -58
- package/lib/emulator/dataconnect/pg-gateway/auth/index.js +0 -22
- package/lib/emulator/dataconnect/pg-gateway/auth/md5.js +0 -124
- package/lib/emulator/dataconnect/pg-gateway/auth/password.js +0 -54
- package/lib/emulator/dataconnect/pg-gateway/auth/sasl/sasl-mechanism.js +0 -34
- package/lib/emulator/dataconnect/pg-gateway/auth/sasl/scram-sha-256.js +0 -270
- package/lib/emulator/dataconnect/pg-gateway/backend-error.js +0 -75
- package/lib/emulator/dataconnect/pg-gateway/buffer-reader.js +0 -54
- package/lib/emulator/dataconnect/pg-gateway/buffer-writer.js +0 -79
- package/lib/emulator/dataconnect/pg-gateway/connection.js +0 -315
- package/lib/emulator/dataconnect/pg-gateway/connection.types.js +0 -8
- package/lib/emulator/dataconnect/pg-gateway/crypto.js +0 -40
- package/lib/emulator/dataconnect/pg-gateway/duplex.js +0 -53
- package/lib/emulator/dataconnect/pg-gateway/index.js +0 -27
- package/lib/emulator/dataconnect/pg-gateway/message-buffer.js +0 -82
- package/lib/emulator/dataconnect/pg-gateway/message-codes.js +0 -52
- package/lib/emulator/dataconnect/pg-gateway/platforms/node/index.js +0 -16
- package/lib/emulator/dataconnect/pg-gateway/polyfills/readable-stream-async-iterator.js +0 -35
- package/lib/emulator/dataconnect/pg-gateway/utils.js +0 -40
- package/templates/setup/web.js +0 -5
- /package/lib/{emulator/dataconnect/pg-gateway/auth/trust.js → dataconnect/cloudAICompanionTypes.js} +0 -0
package/lib/commands/init.js
CHANGED
|
@@ -15,6 +15,8 @@ const fsutils = require("../fsutils");
|
|
|
15
15
|
const utils = require("../utils");
|
|
16
16
|
const experiments_1 = require("../experiments");
|
|
17
17
|
const templates_1 = require("../templates");
|
|
18
|
+
const error_1 = require("../error");
|
|
19
|
+
const track_1 = require("../track");
|
|
18
20
|
const homeDir = os.homedir();
|
|
19
21
|
const BANNER_TEXT = (0, templates_1.readTemplateSync)("banner.txt");
|
|
20
22
|
const GITIGNORE_TEMPLATE = (0, templates_1.readTemplateSync)("_gitignore");
|
|
@@ -39,7 +41,7 @@ let choices = [
|
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
43
|
value: "apphosting",
|
|
42
|
-
name: "App Hosting:
|
|
44
|
+
name: "App Hosting: Enable web app deployments with App Hosting",
|
|
43
45
|
checked: false,
|
|
44
46
|
hidden: false,
|
|
45
47
|
},
|
|
@@ -98,7 +100,7 @@ if ((0, experiments_1.isEnabled)("genkit")) {
|
|
|
98
100
|
];
|
|
99
101
|
}
|
|
100
102
|
const featureNames = choices.map((choice) => choice.value);
|
|
101
|
-
const
|
|
103
|
+
const HELP = `Interactively configure the current directory as a Firebase project or initialize new features in an already configured Firebase project directory.
|
|
102
104
|
|
|
103
105
|
This command will create or update 'firebase.json' and '.firebaserc' configuration files in the current directory.
|
|
104
106
|
|
|
@@ -108,16 +110,18 @@ ${[...featureNames]
|
|
|
108
110
|
.map((n) => `\n - ${n}`)
|
|
109
111
|
.join("")}`;
|
|
110
112
|
exports.command = new command_1.Command("init [feature]")
|
|
111
|
-
.description(
|
|
113
|
+
.description("interactively configure the current directory as a Firebase project directory")
|
|
114
|
+
.help(HELP)
|
|
112
115
|
.before(requireAuth_1.requireAuth)
|
|
113
116
|
.action(initAction);
|
|
114
|
-
function initAction(feature, options) {
|
|
117
|
+
async function initAction(feature, options) {
|
|
115
118
|
if (feature && !featureNames.includes(feature)) {
|
|
116
119
|
return utils.reject(clc.bold(feature) +
|
|
117
120
|
" is not a supported feature; must be one of " +
|
|
118
121
|
featureNames.join(", ") +
|
|
119
122
|
".");
|
|
120
123
|
}
|
|
124
|
+
const start = process.uptime();
|
|
121
125
|
const cwd = options.cwd || process.cwd();
|
|
122
126
|
const warnings = [];
|
|
123
127
|
let warningText = "";
|
|
@@ -151,65 +155,55 @@ function initAction(feature, options) {
|
|
|
151
155
|
fallback: {},
|
|
152
156
|
}),
|
|
153
157
|
};
|
|
154
|
-
let next;
|
|
155
158
|
if (process.platform === "win32") {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
});
|
|
159
|
+
if (!(await (0, prompt_1.confirm)("Are you ready to proceed?"))) {
|
|
160
|
+
throw new error_1.FirebaseError("Aborted by user.", { exit: 1 });
|
|
161
|
+
}
|
|
160
162
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
if (feature) {
|
|
164
|
+
setup.featureArg = true;
|
|
165
|
+
setup.features = [feature];
|
|
163
166
|
}
|
|
164
|
-
|
|
165
|
-
.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
name: "features",
|
|
178
|
-
message: "Which Firebase features do you want to set up for this directory? " +
|
|
179
|
-
"Press Space to select features, then Enter to confirm your choices.",
|
|
180
|
-
choices: choices.filter((c) => !c.hidden),
|
|
167
|
+
else {
|
|
168
|
+
setup.features = await (0, prompt_1.checkbox)({
|
|
169
|
+
message: "Which Firebase features do you want to set up for this directory? " +
|
|
170
|
+
"Press Space to select features, then Enter to confirm your choices.",
|
|
171
|
+
choices: choices.filter((c) => !c.hidden),
|
|
172
|
+
validate: (choices) => {
|
|
173
|
+
if (choices.length === 0) {
|
|
174
|
+
return ("Must select at least one feature. Use " +
|
|
175
|
+
clc.bold(clc.underline("SPACEBAR")) +
|
|
176
|
+
" to select features, or specify a feature by running " +
|
|
177
|
+
clc.bold("firebase init [feature_name]"));
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
181
180
|
},
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
config.writeProjectFile(".gitignore", GITIGNORE_TEMPLATE);
|
|
210
|
-
}
|
|
211
|
-
logger_1.logger.info();
|
|
212
|
-
utils.logSuccess("Firebase initialization complete!");
|
|
213
|
-
});
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
if (!setup.features || setup.features?.length === 0) {
|
|
184
|
+
throw new error_1.FirebaseError("Must select at least one feature. Use " +
|
|
185
|
+
clc.bold(clc.underline("SPACEBAR")) +
|
|
186
|
+
" to select features, or specify a feature by running " +
|
|
187
|
+
clc.bold("firebase init [feature_name]"));
|
|
188
|
+
}
|
|
189
|
+
setup.features.unshift("project");
|
|
190
|
+
const allAccounts = (0, auth_1.getAllAccounts)();
|
|
191
|
+
if (allAccounts.length > 1) {
|
|
192
|
+
setup.features.unshift("account");
|
|
193
|
+
}
|
|
194
|
+
if (setup.features.includes("hosting") && setup.features.includes("hosting:github")) {
|
|
195
|
+
setup.features = setup.features.filter((f) => f !== "hosting:github");
|
|
196
|
+
}
|
|
197
|
+
await (0, init_1.init)(setup, config, options);
|
|
198
|
+
logger_1.logger.info();
|
|
199
|
+
config.writeProjectFile("firebase.json", setup.config);
|
|
200
|
+
config.writeProjectFile(".firebaserc", setup.rcfile);
|
|
201
|
+
if (!fsutils.fileExistsSync(config.path(".gitignore"))) {
|
|
202
|
+
config.writeProjectFile(".gitignore", GITIGNORE_TEMPLATE);
|
|
203
|
+
}
|
|
204
|
+
const duration = Math.floor((process.uptime() - start) * 1000);
|
|
205
|
+
await (0, track_1.trackGA4)("product_init", { products_initialized: setup.features?.join(",") }, duration);
|
|
206
|
+
logger_1.logger.info();
|
|
207
|
+
utils.logSuccess("Firebase initialization complete!");
|
|
214
208
|
}
|
|
215
209
|
exports.initAction = initAction;
|
|
@@ -9,7 +9,7 @@ const error_1 = require("../error");
|
|
|
9
9
|
const filesystem_1 = require("../frameworks/compose/discover/filesystem");
|
|
10
10
|
const frameworkSpec_1 = require("../frameworks/compose/discover/frameworkSpec");
|
|
11
11
|
exports.command = new command_1.Command("internaltesting:frameworks:compose")
|
|
12
|
-
.option("-m, --mode <mode>", "
|
|
12
|
+
.option("-m, --mode <mode>", "composer mode (local or docker)", "local")
|
|
13
13
|
.description("compose framework in current directory")
|
|
14
14
|
.action(async (options) => {
|
|
15
15
|
const mode = options.mode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.command = void 0;
|
|
4
|
-
const clc = require("colorette");
|
|
5
4
|
const command_1 = require("../command");
|
|
6
5
|
const utils = require("../utils");
|
|
7
6
|
const auth = require("../auth");
|
|
@@ -9,11 +8,7 @@ const error_1 = require("../error");
|
|
|
9
8
|
exports.command = new command_1.Command("login:use <email>")
|
|
10
9
|
.description("set the default account to use for this project directory or the global default account if not in a Firebase project directory")
|
|
11
10
|
.action((email, options) => {
|
|
12
|
-
|
|
13
|
-
const accountExists = allAccounts.some((a) => a.user.email === email);
|
|
14
|
-
if (!accountExists) {
|
|
15
|
-
throw new error_1.FirebaseError(`Account ${email} does not exist, run "${clc.bold("firebase login:list")}" to see valid accounts`);
|
|
16
|
-
}
|
|
11
|
+
auth.assertAccount(email);
|
|
17
12
|
const projectDir = options.projectRoot;
|
|
18
13
|
if (projectDir) {
|
|
19
14
|
if (options.user.email === email) {
|
|
@@ -27,15 +22,11 @@ exports.command = new command_1.Command("login:use <email>")
|
|
|
27
22
|
if (options.user.email === email) {
|
|
28
23
|
throw new error_1.FirebaseError(`Already using account ${email} for the global default account.`);
|
|
29
24
|
}
|
|
30
|
-
const newDefaultAccount = allAccounts.find((a) => a.user.email === email);
|
|
31
|
-
if (!newDefaultAccount) {
|
|
32
|
-
throw new error_1.FirebaseError(`Account ${email} does not exist, run "${clc.bold("firebase login:list")}" to see valid accounts`);
|
|
33
|
-
}
|
|
34
25
|
const oldDefaultAccount = auth.getGlobalDefaultAccount();
|
|
35
26
|
if (!oldDefaultAccount) {
|
|
36
27
|
throw new error_1.FirebaseError("Could not determine global default account");
|
|
37
28
|
}
|
|
38
|
-
auth.setGlobalDefaultAccount(
|
|
29
|
+
auth.setGlobalDefaultAccount(email);
|
|
39
30
|
auth.addAdditionalAccount(oldDefaultAccount);
|
|
40
31
|
utils.logSuccess(`Set global default account to ${email}.`);
|
|
41
32
|
return email;
|
package/lib/commands/login.js
CHANGED
|
@@ -27,15 +27,17 @@ exports.command = new command_1.Command("login")
|
|
|
27
27
|
return user;
|
|
28
28
|
}
|
|
29
29
|
if (!options.reauth) {
|
|
30
|
-
utils.logBullet("Firebase
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
utils.logBullet("The Firebase CLI’s MCP server feature can optionally make use of Gemini in Firebase. " +
|
|
31
|
+
"Learn more about Gemini in Firebase and how it uses your data: https://firebase.google.com/docs/gemini-in-firebase#how-gemini-in-firebase-uses-your-data");
|
|
32
|
+
const geminiUsage = await (0, prompt_1.confirm)("Enable Gemini in Firebase features?");
|
|
33
|
+
configstore_1.configstore.set("gemini", geminiUsage);
|
|
34
|
+
logger_1.logger.info();
|
|
35
|
+
utils.logBullet("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.");
|
|
36
|
+
const collectUsage = await (0, prompt_1.confirm)("Allow Firebase to collect CLI and Emulator Suite usage and error reporting information?");
|
|
36
37
|
configstore_1.configstore.set("usage", collectUsage);
|
|
37
|
-
if (collectUsage) {
|
|
38
|
-
|
|
38
|
+
if (geminiUsage || collectUsage) {
|
|
39
|
+
logger_1.logger.info();
|
|
40
|
+
utils.logBullet("To change your the preference at any time, run `firebase logout` and `firebase login` again.");
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
const useLocalhost = (0, utils_1.isCloudEnvironment)() ? false : options.localhost;
|
package/lib/commands/logout.js
CHANGED
|
@@ -5,8 +5,8 @@ const command_1 = require("../command");
|
|
|
5
5
|
const logger_1 = require("../logger");
|
|
6
6
|
const clc = require("colorette");
|
|
7
7
|
const utils = require("../utils");
|
|
8
|
-
const prompt_1 = require("../prompt");
|
|
9
8
|
const auth_1 = require("../auth");
|
|
9
|
+
const prompt_1 = require("../prompt");
|
|
10
10
|
exports.command = new command_1.Command("logout [email]")
|
|
11
11
|
.description("log the CLI out of Firebase")
|
|
12
12
|
.action(logoutAction);
|
|
@@ -38,8 +38,7 @@ async function logoutAction(email, options) {
|
|
|
38
38
|
value: a,
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
newDefaultAccount = await (0, prompt_1.
|
|
42
|
-
type: "list",
|
|
41
|
+
newDefaultAccount = await (0, prompt_1.select)({
|
|
43
42
|
message: "You are logging out of your default account, which account should become the new default?",
|
|
44
43
|
choices,
|
|
45
44
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = void 0;
|
|
4
|
+
const command_1 = require("../command");
|
|
5
|
+
const requireAuth_1 = require("../requireAuth");
|
|
6
|
+
exports.command = new command_1.Command("experimental:mcp")
|
|
7
|
+
.description("Start an MCP server with access to the current working directory's project and resources.")
|
|
8
|
+
.before(requireAuth_1.requireAuth)
|
|
9
|
+
.action(() => {
|
|
10
|
+
throw new Error("MCP logic is implemented elsewhere, this should never be reached.");
|
|
11
|
+
});
|
package/lib/commands/open.js
CHANGED
|
@@ -14,13 +14,16 @@ const utils = require("../utils");
|
|
|
14
14
|
const requireHostingSite_1 = require("../requireHostingSite");
|
|
15
15
|
const LINKS = [
|
|
16
16
|
{ name: "Analytics", arg: "analytics", consolePath: "/analytics" },
|
|
17
|
+
{ name: "App Hosting", arg: "apphosting", consolePath: "/apphosting" },
|
|
17
18
|
{ name: "Authentication: Providers", arg: "auth", consolePath: "/authentication/providers" },
|
|
18
19
|
{ name: "Authentication: Users", arg: "auth:users", consolePath: "/authentication/users" },
|
|
19
20
|
{ name: "Crash Reporting", arg: "crash", consolePath: "/crashlytics" },
|
|
20
21
|
{ name: "Database: Data", arg: "database", consolePath: "/database/data" },
|
|
21
22
|
{ name: "Database: Rules", arg: "database:rules", consolePath: "/database/rules" },
|
|
23
|
+
{ name: "Data Connect", arg: "dataconnect", consolePath: "/dataconnect" },
|
|
22
24
|
{ name: "Docs", arg: "docs", url: "https://firebase.google.com/docs" },
|
|
23
25
|
{ name: "Dynamic Links", arg: "links", consolePath: "/durablelinks" },
|
|
26
|
+
{ name: "Extensions", arg: "extensions", consolePath: "/extensions" },
|
|
24
27
|
{ name: "Firestore: Data", arg: "firestore", consolePath: "/firestore/data" },
|
|
25
28
|
{ name: "Firestore: Rules", arg: "firestore:rules", consolePath: "/firestore/rules" },
|
|
26
29
|
{ name: "Firestore: Indexes", arg: "firestore:indexes", consolePath: "/firestore/indexes" },
|
|
@@ -64,8 +67,7 @@ exports.command = new command_1.Command("open [link]")
|
|
|
64
67
|
throw new error_1.FirebaseError("Unrecognized link name. Valid links are:\n\n" + LINKS.map((l) => l.arg).join("\n"));
|
|
65
68
|
}
|
|
66
69
|
if (!link) {
|
|
67
|
-
const name = await (0, prompt_1.
|
|
68
|
-
type: "list",
|
|
70
|
+
const name = await (0, prompt_1.select)({
|
|
69
71
|
message: "What link would you like to open?",
|
|
70
72
|
choices: CHOICES,
|
|
71
73
|
});
|
|
@@ -4,7 +4,6 @@ exports.command = void 0;
|
|
|
4
4
|
const command_1 = require("../command");
|
|
5
5
|
const error_1 = require("../error");
|
|
6
6
|
const projects_1 = require("../management/projects");
|
|
7
|
-
const prompt_1 = require("../prompt");
|
|
8
7
|
const requireAuth_1 = require("../requireAuth");
|
|
9
8
|
exports.command = new command_1.Command("projects:create [projectId]")
|
|
10
9
|
.description("creates a new Google Cloud Platform project, then adds Firebase resources to the project")
|
|
@@ -18,7 +17,7 @@ exports.command = new command_1.Command("projects:create [projectId]")
|
|
|
18
17
|
throw new error_1.FirebaseError("Invalid argument, please provide only one type of project parent (organization or folder)");
|
|
19
18
|
}
|
|
20
19
|
if (!options.nonInteractive) {
|
|
21
|
-
await (0,
|
|
20
|
+
options = { ...options, ...(await (0, projects_1.promptProjectCreation)(options)) };
|
|
22
21
|
}
|
|
23
22
|
if (!options.projectId) {
|
|
24
23
|
throw new error_1.FirebaseError("Project ID cannot be empty");
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.command = void 0;
|
|
4
4
|
const clc = require("colorette");
|
|
5
5
|
const ora = require("ora");
|
|
6
|
-
const Table = require("cli-
|
|
6
|
+
const Table = require("cli-table3");
|
|
7
7
|
const command_1 = require("../command");
|
|
8
8
|
const projects_1 = require("../management/projects");
|
|
9
9
|
const requireAuth_1 = require("../requireAuth");
|
|
@@ -9,7 +9,7 @@ const projectUtils_1 = require("../projectUtils");
|
|
|
9
9
|
const requirePermissions_1 = require("../requirePermissions");
|
|
10
10
|
const get_1 = require("../remoteconfig/get");
|
|
11
11
|
const utils = require("../utils");
|
|
12
|
-
const Table = require("cli-
|
|
12
|
+
const Table = require("cli-table3");
|
|
13
13
|
const fs = require("fs");
|
|
14
14
|
const util = require("util");
|
|
15
15
|
const error_1 = require("../error");
|
|
@@ -34,13 +34,13 @@ exports.command = new command_1.Command("remoteconfig:rollback")
|
|
|
34
34
|
`. ` +
|
|
35
35
|
`Invalid Version Number`);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
type: "confirm",
|
|
39
|
-
name: "force",
|
|
37
|
+
const proceed = await (0, prompt_1.confirm)({
|
|
40
38
|
message: "Proceed to rollback template to version " + targetVersion + "?",
|
|
41
39
|
default: false,
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
force: options.force,
|
|
41
|
+
nonInteractive: options.nonInteractive,
|
|
42
|
+
});
|
|
43
|
+
if (!proceed) {
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
return (0, rollback_1.rollbackTemplate)((0, projectUtils_1.needProjectId)(options), targetVersion);
|
|
@@ -8,7 +8,7 @@ const projectUtils_1 = require("../projectUtils");
|
|
|
8
8
|
const requireAuth_1 = require("../requireAuth");
|
|
9
9
|
const requirePermissions_1 = require("../requirePermissions");
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
|
-
const Table = require("cli-
|
|
11
|
+
const Table = require("cli-table3");
|
|
12
12
|
const tableHead = ["Update User", "Version Number", "Update Time"];
|
|
13
13
|
function pushTableContents(table, version) {
|
|
14
14
|
return table.push([
|
|
@@ -19,7 +19,7 @@ function pushTableContents(table, version) {
|
|
|
19
19
|
}
|
|
20
20
|
exports.command = new command_1.Command("remoteconfig:versions:list")
|
|
21
21
|
.description("get a list of Remote Config template versions that have been published for a Firebase project")
|
|
22
|
-
.option("--limit <maxResults>", "limit the number of versions being returned. Pass '0' to fetch all versions
|
|
22
|
+
.option("--limit <maxResults>", "limit the number of versions being returned. Pass '0' to fetch all versions")
|
|
23
23
|
.before(requireAuth_1.requireAuth)
|
|
24
24
|
.before(requirePermissions_1.requirePermissions, ["cloudconfig.configs.get"])
|
|
25
25
|
.action(async (options) => {
|
|
@@ -6,7 +6,7 @@ const download_1 = require("../emulator/download");
|
|
|
6
6
|
const types_1 = require("../emulator/types");
|
|
7
7
|
const NAME = types_1.Emulators.DATABASE;
|
|
8
8
|
exports.command = new command_1.Command(`setup:emulators:${NAME}`)
|
|
9
|
-
.description(`
|
|
9
|
+
.description(`download the ${NAME} emulator`)
|
|
10
10
|
.action(() => {
|
|
11
11
|
return (0, download_1.downloadEmulator)(NAME);
|
|
12
12
|
});
|
|
@@ -7,7 +7,7 @@ const logger_1 = require("../logger");
|
|
|
7
7
|
const downloadableEmulators_1 = require("../emulator/downloadableEmulators");
|
|
8
8
|
const NAME = types_1.Emulators.DATACONNECT;
|
|
9
9
|
exports.command = new command_1.Command(`setup:emulators:${NAME}`)
|
|
10
|
-
.description(`
|
|
10
|
+
.description(`download the ${NAME} emulator`)
|
|
11
11
|
.action(async (options) => {
|
|
12
12
|
await (0, downloadableEmulators_1.downloadIfNecessary)(NAME);
|
|
13
13
|
if (!options.config) {
|
|
@@ -6,7 +6,7 @@ const download_1 = require("../emulator/download");
|
|
|
6
6
|
const types_1 = require("../emulator/types");
|
|
7
7
|
const NAME = types_1.Emulators.FIRESTORE;
|
|
8
8
|
exports.command = new command_1.Command(`setup:emulators:${NAME}`)
|
|
9
|
-
.description(`
|
|
9
|
+
.description(`download the ${NAME} emulator`)
|
|
10
10
|
.action(() => {
|
|
11
11
|
return (0, download_1.downloadEmulator)(NAME);
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const download_1 = require("../emulator/download");
|
|
|
6
6
|
const types_1 = require("../emulator/types");
|
|
7
7
|
const EMULATOR_NAME = types_1.Emulators.PUBSUB;
|
|
8
8
|
exports.command = new command_1.Command(`setup:emulators:${EMULATOR_NAME}`)
|
|
9
|
-
.description(`
|
|
9
|
+
.description(`download the ${EMULATOR_NAME} emulator`)
|
|
10
10
|
.action(() => {
|
|
11
11
|
return (0, download_1.downloadEmulator)(EMULATOR_NAME);
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const download_1 = require("../emulator/download");
|
|
|
6
6
|
const types_1 = require("../emulator/types");
|
|
7
7
|
const EMULATOR_NAME = types_1.Emulators.STORAGE;
|
|
8
8
|
exports.command = new command_1.Command(`setup:emulators:${EMULATOR_NAME}`)
|
|
9
|
-
.description(`
|
|
9
|
+
.description(`download the ${EMULATOR_NAME} emulator`)
|
|
10
10
|
.action(() => {
|
|
11
11
|
return (0, download_1.downloadEmulator)(EMULATOR_NAME);
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ const download_1 = require("../emulator/download");
|
|
|
6
6
|
const types_1 = require("../emulator/types");
|
|
7
7
|
const NAME = types_1.Emulators.UI;
|
|
8
8
|
exports.command = new command_1.Command(`setup:emulators:${NAME}`)
|
|
9
|
-
.description(`
|
|
9
|
+
.description(`download the ${NAME} emulator`)
|
|
10
10
|
.action(() => {
|
|
11
11
|
return (0, download_1.downloadEmulator)(NAME);
|
|
12
12
|
});
|