How to get a list of google-chrome extensions from the command line?

As I am unable to open the chrome browser on a remote Linux system (Ubuntu 16.04), I cannot open the browser to see the installed add-ons.

How can I, per command line, see the addons installed with google-chrome.


For Chromium with snap installed, I have below, with jq command being pretty easy and a better way than sed/cut/awk/sort/etc.:

#!/bin/bash

ext_dir="$HOME/snap/chromium/common/chromium/Default/Extensions/"

for i in $(find $ext_dir -name 'manifest.json'); do
  n=$(jq ".name" $i)
  update=$(jq ".update_url" $i)
    # n=$(grep -hIr name $i| cut -f4 -d '"'| sort)
    # u="https://chrome.google.com/extensions/detail/"
  ue=$(basename $(dirname $(dirname $i)))
  echo -e "$ue,$n:\n$update\n"
done

I figured it out myself; you can run the following command:

for i in $(find ~/.config/google-chrome/*/Extensions -name 'manifest.json'); do
  n=$(grep -hIr name $i| cut -f4 -d '"'| sort)
  u="https://chrome.google.com/extensions/detail/"
  ue=$(basename $(dirname $(dirname $i)))
  echo -e "$n:\n$u$ue\n"
done