Skip to main content
electron-builder provides several commands to build, install dependencies, and manage your Electron application.

electron-builder build

The main command to build your Electron application. This is the default command.
Or simply:

Build for specific platforms

Build specific targets

Build for specific architectures

Build unpacked directory

Useful for testing without creating distributable packages:

Using npx

Since Node.js 8, you can use npx to run electron-builder without a global install:
Prepend npx to sample commands if you run them from Terminal and not from package.json scripts.

electron-builder install-app-deps

Installs or rebuilds native dependencies for your Electron application.
Or using the standalone command:

Options

  • --platform - Target platform (linux, darwin, win32). Defaults to current platform.
  • --arch - Target architecture (x64, ia32, armv7l, arm64, all). Defaults to current architecture.

electron-builder node-gyp-rebuild

Rebuild native Node.js modules for Electron.
This command uses the same options as install-app-deps:

electron-builder create-self-signed-cert

Create a self-signed code signing certificate for Windows applications.

Options

  • --publisher, -p (required) - The publisher name for the certificate

electron-builder start

Run your application in development mode using electron-webpack.

electron-builder publish

Publish a list of artifacts to configured publishers (e.g., GitHub Releases).

Options

  • --files, -f (required) - The file(s) to upload to your publisher
  • --version, -v - The app/build version used when searching for an upload release
  • --config, -c - Path to electron-builder config file

Getting Help

For detailed help on any command, use the --help flag:
For more documentation, visit https://electron.build.