'How to create a Tab Group in Google Chrome from the command line

I use a script to open my browser and a bunch of tabs, for when I accidentally close the browser, with a small window still open in the background (SPAM windows, etc.). The problem is, with Google Chrome set to continue where I left off, when I restart the computer, or Google Chrome, I just get a single windows open with the tab, not my pinned tabs, and tab groups.

Is there a way to create a tab group from the command line?

I have tried a few ways of doing this, but the scripting I can find, will only open the tab in the browser, not actually allow me to create a tab group.

I have tried using:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" google.com mysite.com

This will load the pages as tabs, but I cannot create a tab group.

I have tried Python

python -m webbrowser google.com mysite.com

I cannot see anyway to create a tab group.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source