interface InitOptions {
    copyCIFiles?: boolean;
    dir?: string;
    electronVersion?: string;
    force?: boolean;
    interactive?: boolean;
    skipGit?: boolean;
    template?: string;
}

Properties

copyCIFiles?: boolean

Whether to copy template CI files

dir?: string

The path to the app to be initialized

electronVersion?: string

Set a specific Electron version for your Forge project. Can take in version numbers or latest, beta, or nightly.

Default Value

The latest tag on npm.

force?: boolean

Whether to overwrite an existing directory

interactive?: boolean

Whether to use sensible defaults or prompt the user visually

skipGit?: boolean

By default, Forge initializes a git repository in the project directory. Set this option to true to skip this step.

template?: string

The custom template to use. If left empty, the default template is used