-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: CLI #126
Comments
It would be really difficult to make the code changes necessary for an extension to be installed from a cli tool. I don't really think there is a way to get around adding the code. |
@nklayman I think there's a common misconception that these devtools require app code changes. Once you run the "install" code (eg in the devtools console), the extension stays installed, even after a restart. No code changes are necessary. At my work, we actually investigated why the installed devtools seemed to persist for some folks, while others needed to reinstall them every time. We discovered that Electron does save the list of installed DevTools extensions -- but it only saves the list on quit. So, some people were accustomed to killing the process in the Terminal (eg. All this to say: in my project, I just finished a custom So I'd be happy to contribute a script for performing this action from a CLI prompt, so that installing these tools is as easy as |
If you found a way to do it than that is awesome, I'm glad to be wrong on this. However, the maintainer of this repo seems to be MIA and hasn't been merging PRs. You may have to create a fork or an entirely separate project. Best of luck either way, I might have to start using it instead of the code change. |
🤔 👀 |
@scottrippey I would be on board with this but I know that the way that Electron devtools extensions are persisted across restarts will change and be less modifiable from Electron 9 onwards. If you can find a solution that works with Electron 9 I'd be more than happy to review a PR to add a CLI to this module 🙇 |
Let me investigate E9 and see what's different. I'm currently on E8 so thanks for letting me know ahead-of-time about this change! |
Looking at the E9 source code, I can see how they've changed I currently have a (private repo) CLI script that is working great. I'll see if I can take some time to create a PR. My only concern with adding a CLI script is: any CLI tools will have to be prod dependencies ... Personally I like using |
I would love to be able to install devtools from a CLI command, instead of by adding this temporary code to my Electron app.
This could be done as an interactive prompt from running:
What do you think of this?
The text was updated successfully, but these errors were encountered: