title: How to create a Chrome profile programmatically?
body: <p>Development, testing, staging environments are controlled via different proxy servers in my setup. I want to script creation of multiple Chrome profiles (sometimes called "user" or "person") and connect to a different proxy server for each of them. Finally I want to share this script with colleagues so that they have access to the exactly same setup.</p>
  
  <p>The latter can be done via scripted installation of extensions such as <a href="https://chrome.google.com/webstore/detail/falcon-proxy/gchhimlnjdafdlkojbffdkogjhhkdepf" rel="noreferrer">Falcon Proxy</a> or <a href="https://chrome.google.com/webstore/detail/proxy-helper/mnloefcpaepkpmhaoipjkpikbnkmbnic" rel="noreferrer">Proxy Helper</a> to the Chrome profile. I would like to know how to script creation of the different profiles.</p>
  
  <p>A profile is a folder inside <code>~/.config/google-chrome</code> (Linux, <code>~/Library/Application Support/Google/Chrome</code> (Mac OS X) and <code>%USERPROFILE%\AppData\Local\Google\Chrome\User Data</code> (Windows). But how to create and initialize one? Where do I register the new profile?</p>