@salesforce/plugin-templates
Version:
Commands to create metadata from a default or custom template
24 lines (23 loc) • 1.47 kB
TypeScript
import { SfCommand } from '@salesforce/sf-plugins-core';
import { CreateOutput } from '@salesforce/templates';
export default class GenerateSite extends SfCommand<CreateOutput> {
static readonly state = "preview";
static readonly summary: string;
static readonly description: string;
static readonly examples: string[];
static readonly flags: {
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
'template-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
'url-path-prefix': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
'admin-email': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
};
/**
* Resolves the default output directory by reading the project's sfdx-project.json.
* Returns the path to the default package directory,
* or falls back to the current directory if not in a project context.
*/
private static getDefaultOutputDir;
run(): Promise<CreateOutput>;
}