import { MrtCommand } from '@salesforce/b2c-tooling-sdk/cli'; import { pushBundle, deployMrtBundle, waitForEnv, waitForDeploymentScapi } from '@salesforce/b2c-tooling-sdk/operations/mrt'; /** * Deploy a bundle to Managed Runtime. * * Without bundleId: Creates a bundle from the local build directory and uploads it. * Optionally deploys to an environment if --environment is specified. * The local-build path is legacy-pinned (bundle upload is not part of the SCAPI * MRT surface yet), so it runs against the MRT Cloud API regardless of backend. * * With bundleId: Deploys an existing bundle to the specified environment. This * path is backend-aware — it honors `--mrt-backend` (auto/legacy/scapi). */ export default class MrtBundleDeploy extends MrtCommand { static args: { bundleId: import("@oclif/core/interfaces").Arg; }; static description: string; static enableJsonFlag: boolean; static examples: string[]; static flags: { message: import("@oclif/core/interfaces").OptionFlag; 'build-dir': import("@oclif/core/interfaces").OptionFlag; 'ssr-only': import("@oclif/core/interfaces").OptionFlag; 'ssr-shared': import("@oclif/core/interfaces").OptionFlag; 'node-version': import("@oclif/core/interfaces").OptionFlag; 'ssr-param': import("@oclif/core/interfaces").OptionFlag; wait: import("@oclif/core/interfaces").BooleanFlag; 'poll-interval': import("@oclif/core/interfaces").OptionFlag; timeout: import("@oclif/core/interfaces").OptionFlag; 'api-key': import("@oclif/core/interfaces").OptionFlag; project: import("@oclif/core/interfaces").OptionFlag; environment: import("@oclif/core/interfaces").OptionFlag; 'cloud-origin': import("@oclif/core/interfaces").OptionFlag; 'credentials-file': import("@oclif/core/interfaces").OptionFlag; 'mrt-backend': import("@oclif/core/interfaces").OptionFlag<"scapi" | "auto" | "legacy", import("@oclif/core/interfaces").CustomOptions>; 'client-id': import("@oclif/core/interfaces").OptionFlag; 'client-secret': import("@oclif/core/interfaces").OptionFlag; 'auth-scope': import("@oclif/core/interfaces").OptionFlag; 'short-code': import("@oclif/core/interfaces").OptionFlag; 'tenant-id': import("@oclif/core/interfaces").OptionFlag; 'auth-methods': import("@oclif/core/interfaces").OptionFlag; 'user-auth': import("@oclif/core/interfaces").BooleanFlag; 'account-manager-host': import("@oclif/core/interfaces").OptionFlag; 'jwt-cert': import("@oclif/core/interfaces").OptionFlag; 'jwt-key': import("@oclif/core/interfaces").OptionFlag; 'jwt-passphrase': import("@oclif/core/interfaces").OptionFlag; 'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>; debug: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; jsonl: import("@oclif/core/interfaces").BooleanFlag; lang: import("@oclif/core/interfaces").OptionFlag; config: import("@oclif/core/interfaces").OptionFlag; instance: import("@oclif/core/interfaces").OptionFlag; 'project-directory': import("@oclif/core/interfaces").OptionFlag; 'extra-query': import("@oclif/core/interfaces").OptionFlag; 'extra-body': import("@oclif/core/interfaces").OptionFlag; 'extra-headers': import("@oclif/core/interfaces").OptionFlag; }; protected operations: { pushBundle: typeof pushBundle; deployMrtBundle: typeof deployMrtBundle; waitForEnv: typeof waitForEnv; waitForDeploymentScapi: typeof waitForDeploymentScapi; }; run(): Promise; protected supportsScapiMrt(): boolean; /** * Deploy an existing bundle to an environment. Backend-aware: honors * `--mrt-backend` and, on `--wait`, polls whichever backend served the deploy. * * Returns the backend's native response so `--json` stays backend-specific: * without `--wait`, the raw create result (legacy MRT Cloud API / SCAPI * Storefront Deployments); with `--wait`, the polled environment (legacy) or * completed deployment (SCAPI). */ private deployExistingBundle; /** * Push a local build to create a new bundle. Legacy-pinned: bundle upload is * not part of the SCAPI MRT surface, so a single command never mixes * backends. Explicit `--mrt-backend scapi` errors here; `auto` warns and * proceeds on the legacy MRT Cloud API. */ private pushLocalBuild; /** * Wait for a legacy deployment to complete by polling the environment state. */ private waitForDeployment; /** * Wait for a SCAPI deployment to complete by polling it by ID (the backend * that served a SCAPI deploy pins this strategy). */ private waitForScapiDeploymentById; }