Create Firefox Profile via Command Line

11

1

Is it possible to create Firefox profiles via the command line? I need to programatically launch Firefox with different proxy settings. From my understanding, I can do this via creating a profile. However, I don't want to create these profiles manually.

sKIPper76

Posted 2010-02-04T20:15:51.217

Reputation:

You may get a better response on superuser.com – Brian – 2010-02-04T20:16:32.140

Answers

12

You sure can!

example:

firefox -CreateProfile john

check out the rest of Firefox's command line arguments.

Once your profile is created and configured you can launch the profile by doing the following:

firefox -P john

John T

Posted 2010-02-04T20:15:51.217

Reputation: 149 037

1The -CreateProfile is not available in recent versions of Firefox anymore. Is there any manual way to simulate this command? – Amir Ali Akbari – 2014-08-30T19:16:20.653

3

@AmirAliAkbari From a pseudo-answer by jotomo (who doesn't have enough rep to comment): "This still works in FF 31. If there is an instance of Firefox already running, the -no-remote option must be specified as well, otherwise the -CreateProfile argument is ignored and FF just opens another window."

– gronostaj – 2014-09-10T19:50:55.143