Installing Extensions via Command Line

Hi everyone!

I’m working on some installation scripts to aid in my switching over to a new Linux distribution.

In the past I’ve just echoed out all the extensions I previously had installed, but I’m curious to know if there’s a way to install the extensions with the command line. Can I get a reference to an extension from the Web Store or the .crx/.zip and run a command to install them once brave-browser is available?

I guess I could also look into opening an instance of Brave with the extension urls as well…

Is there a CLI reference somewhere or is it basically the same as Chromium?

2 Likes

Hi

Noone have an answer?

1 Like

You can automate the installation of extensions in Brave and in all chromium based browsers.
I am doing it and I can tell you it really works.
It can be done with initial preferences and you install the latest version from chrome store in first run.
Initial prederences can also parse secure preferences,
Check out the second link and the Pre-installing via master_preferences way.
I have my own autoit script that does it via copying brave installation in a write able directory, create an initial_preferences flle next to brave.exe and launch the profile from there silently and then delete the copied brave directory.
It really works this way and it doesn’t even need admin rights.
I don’t think chromium will ever allow it to be easier, for example by doing it with a simple commandline option for security reasons.
For more information.

https://www.chromium.org/administrators/

https://www.chromium.org/administrators/pre-installed-extensions/

https://www.chromium.org/administrators/configuring-other-preferences/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.