On Windows

Open Command Prompt(CMD) and use the below command:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --pack-extension=<chrome extension folder location>

Replace the <chrome extension folder location> with actual location of the chrome extension folder within which the manifest.json file is located.


For example,

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --pack-extension=C:\Downloads\chrome_extension

Note: If your Chrome Browser is installed in a different folder, please use that path for "chrome.exe"

 

On Mac

Use the below command in Terminal:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=<chrome extension folder location>

Replace the <chrome extension folder location> with actual location of the chrome extension folder within which the manifest.json file is located.


For example,

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=.chrome-extension

Note: The above command will work for Linux as well with the respective folder for chrome binary.



The above process will create the crx file in your current directory.