sfdx-experiences-plugin
Version:
SFDX plugin to manage ExperienceBundle metadata
33 lines (32 loc) • 993 B
TypeScript
import { flags, SfdxCommand } from '@salesforce/command';
/**
* Command which copies routes and views from one ExperienceBundle to another.
*/
export default class ExperiencesPagesCopy extends SfdxCommand {
static description: string;
static examples: string[];
static args: {
name: string;
required: boolean;
description: string;
}[];
protected static flagsConfig: {
overwrite: flags.Discriminated<flags.Boolean<boolean>>;
files: flags.Discriminated<flags.Array<string>>;
};
protected static requiresUsername: boolean;
protected static supportsDevhubUsername: boolean;
protected static requiresProject: boolean;
run(): Promise<CopyResult>;
}
interface CopyResult {
copiedPages: CopyPageResult[];
}
interface CopyPageResult {
fileName: string;
sourceRouteFile: string;
targetRouteFile: string;
sourceViewFile: string;
targetViewFile: string;
}
export {};