google-chromegoogle-chrome-extensionbrowser-extension

--load-extension parameter for chrome doesn't work


Does anyone know how to load unpacked google chrome plugin from command line? I tried the following, but it doesn't work:

"C:\Users\<name>\AppData\Local\Google\Chrome\Application\chrome.exe" --load-extension="<path/to/unpacked/extension>"

The above command just opens a chrome browser window and doesn't load my extension.


Solution

  • Most of the command-line flags are only effective when all existing instances of Chrome that corresponds to the chrome profile have been terminated.

    If you don't see any Chrome window, open the task manager and kill every process called chrome.exe. After doing that, you can use --load-extension=... to temporarily load a Chrome extension (the extension will be gone when you start Chrome without this flag, again only after closing all running instances of Chrome).