-
Notifications
You must be signed in to change notification settings - Fork 70
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
Install Google Chrome Extensions from the command line #8
Comments
+1 that would be awesome ! A package manager for chrome extensions ! More links: |
I have looked at those links which either require the extension to be unpacked or makes use of the preference JSON file or windows registry and still require some form of user input. They are fairly limited and require manual setting up before hand for each extension that you would like to install. Would love to be able to install any chrome extension that is available on the Chrome Web Store using something like this: |
The only thing is that this possibility has been disabled because of malware adding their extensions. I think it would at least require a fork of chrome to allow a new API to be created to manage the extension (I would definitely do it as a chrome extension that can manage other chrome extensions first before going all CLI) |
The command line app would be a separate app from chrome and the user would have to install the command line app first (so the possibility of malware being added are nil) and those that do install it are likely to know what they doing. No fork of chrome is required as you would be downloading the extension and installing it by extracting the crx file into the user's chrome profile folder which is where the chrome extensions are installed. |
I mean, the power to install extension without an authaurization from within the chrome browser makes it possible for malware to add extensions. So it's been removed from chrome and you can't do it without an "Enterprise Policy" (if I understand correctly) More infos: https://blog.chromium.org/2015/05/continuing-to-protect-chrome-users-from.html |
Since chrome extensions are just zip file which are renamed to .crx we can just extract them to install them on our device and so would work on any device irrespective of whether or not it has Enterprise Policy. |
I have been through this situation before. what I managed to do is changing a Chrome policy ExtensionInstallForcelist which enables installing an extension without the inline installation.
{
"ExtensionInstallForcelist": ["kkmknnnjliniefekpicbaaobdnjjikfp;https://clients2.google.com/service/update2/crx"]
} You can of course change the app ID And then launch Chrome and consult For references you can see: Chrome administrator and ExtensionInstallForcelist |
@jemacom What about if you are using Windows? |
This is a old issue but I should be the same if chrome hasn't changed any haven't tested if this even works anymore Anyway hoping to add automatic extension installing to my Arch Linux setup script if anyone knows a better way of doing this tell me |
What if you want to install locally unpacked extensions? |
Add the ability to install, uninstall, search for Google Chrome Extensions from the command line like how you can install application on windows using chocolatey or homebrew on mac using the terminal.
The text was updated successfully, but these errors were encountered: