Search code examples
command-linemicrosoft-edgemicrosoft-edge-extension

Microsoft-Edge's command-line option "--load-extension" does not working


I want to load the temporary extension when you open the browser.

But the command for Microsoft Edge does not work.
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --load-extension="C:\Users\Administrator\Desktop\autoLogin"

The command for Chrome works.
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe --load-extension="C:\Users\Administrator\Desktop\autoLogin"

What should i do?


Solution

  • I have tested further on my side and found that the below command loads the extension to the Edge browser.

    start msedge --load-extension="<Extension-path>"
    

    Output:

    enter image description here

    Note: Make sure to close all the instances of the Edge browser before running this command.