fuses icon indicating copy to clipboard operation
fuses copied to clipboard

Enhancement: Implement a Command-Line Interface (CLI) for Managing Electron Fuses

Open kashi-verma opened this issue 11 months ago • 2 comments

Currently, Electron Fuses are managed programmatically using the flipFuses function from the @electron/fuses package. While this approach is effective, introducing a CLI tool could simplify fuse management, especially for developers who prefer command-line operations or wish to integrate fuse configuration into existing shell scripts and build pipelines.

Proposed Features:

  1. Fuse Reading: Retrieve and display the current status of all fuses in a specified Electron binary.

  2. Fuse Writing: Enable or disable specific fuses through straightforward CLI commands.

  3. Configuration from File: Apply fuse settings from a configuration file, facilitating consistent setups across different environments and projects.

  4. Integration with Build Tools: Ensure compatibility with popular build tools to allow seamless incorporation into automated build processes.

Benefits:

User-Friendly: Provides an alternative to programmatic fuse management, catering to a broader range of developer preferences.

Automation: Simplifies the integration of fuse configuration into CI/CD pipelines and other automated workflows.

Consistency: Using configuration files ensures uniform fuse settings across various development and production environments.

Considerations:

Documentation: Comprehensive guides and examples would be necessary to help users adopt the CLI tool effectively.

Testing: Robust testing is essential to ensure the CLI operates correctly across different platforms and Electron versions.

Implementing a CLI for Electron Fuses could enhance the developer experience by providing more flexibility and control over fuse management. This addition would complement the existing programmatic methods, offering a versatile toolkit for Electron developers.

kashi-verma avatar Mar 05 '25 07:03 kashi-verma

"Hi, I'd like to work on this issue. I'll implement the CLI for managing Electron Fuses. Let me know if there are any specific requirements."

rahulbajad avatar Mar 29 '25 03:03 rahulbajad

There already is a CLI: https://github.com/electron/fuses/tree/main?tab=readme-ov-file#from-the-command-line

RyanZim avatar Aug 05 '25 20:08 RyanZim

Closing as there's already an existing CLI, as pointed out by @RyanZim.

dsanders11 avatar Feb 18 '26 17:02 dsanders11