Skip to content

Docs: electron-forge import documented but removed in Forge v8 CLI #263

Open

Description

@JinTongXue-git

Summary

The official docs still instruct users to run npx electron-forge import,
but this command no longer exists in @electron-forge/cli v8.

Affected pages

  1. https://www.electronjs.org/docs/latest/tutorial/tutorial-packaging
    ("Importing your project into Forge" section):
    npm install --save-dev @electron-forge/cli
    npx electron-forge import
    
  2. https://www.electronforge.io/cli#commands still documents an "Import" command.

Reproduction

On Windows 11, Node v24.18.0, npm 11.16.0:

npm install --save-dev @electron-forge/cli
npx electron-forge import

Output:

error: unknown command 'import'

npx electron-forge --help (v8.0.1) only lists:
start, package, make, release.

Expected

Either the docs should be updated for v8 (manual creation of
forge.config.js instead of the import script), or the removal should
be noted in the migration guide. Following the official tutorial currently
fails at the packaging step for every new user.

Environment

  • @electron-forge/cli: 8.0.1
  • Electron: 44.5.1
  • OS: Windows 11 (win32)
  • Node: v24.18.0, npm: 11.16.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions