firebase-tools
Version:
Command-Line Interface for Firebase
17 lines (16 loc) • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.command = void 0;
const command_1 = require("../command");
const deploy_1 = require("../deploy");
const update_1 = require("../deploy/run/update");
const requireConfig_1 = require("../requireConfig");
const requirePermissions_1 = require("../requirePermissions");
exports.command = new command_1.Command("run:services:update <serviceId>")
.description("update the settings of a Cloud Run service, then build and deploy it")
.option("--region <region>", "the service's region, if firebase.json lists the service ID in more than one region")
.option("--base-image <baseImage>", "set the base image (e.g. nodejs22) and enable automatic base image updates")
.option("--clear-base-image", "clear the base image and disable automatic base image updates")
.before(requireConfig_1.requireConfig)
.before(requirePermissions_1.requirePermissions, deploy_1.TARGET_PERMISSIONS.run)
.action((serviceId, options) => (0, update_1.updateService)(serviceId, options.region, options));