Reputation: 115
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.
Upvotes: 7
Views: 21304
Reputation: 962
U can load your extension without closing other Chrome instances. To do so in addition to --load-extension
u have to specify User Data directory flag that differs from your current (that used by already running instances). But in new Chrome instance u will lose all ur User Data things (like history, other extensions, etc).
On Windows default User Data directory is C:\Users\<USER>\AppData\Local\Google\Chrome\User Data
.
Example ("Target" field in Chrome's shortcut):
"C:\Program Files\Google\Chrome\Application\chrome.exe" --load-extension="C:\my-extension" --user-data-dir="C:\my-new-user-data"
Upvotes: 0
Reputation: 349142
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).
Upvotes: 11