Are there any command-line arguments for Origin?

Are there any command-line arguments for Origin? - Selective focus of black sunglasses with glossy surface against vivid multicolored blinds in daylight

Note: If this belongs better on SuperUser, StackOverflow, or some other exchange, please tell me and I'll move it.

I'm trying to control Origin via command line (mainly to launch specific games). However, I can't find anywhere what arguments it accepts! I've tried passing it -?, -help, etc. and it just launches Origin. I tried asking Origin support and they say:

We as it is not supported by us I would check in forums from other people who are doing things as you are.

Poor grammar aside, he makes it clear that I won't get this from official sources. So, does anyone know what arguments Origin accepts, if any?



Best Answer

Origin installs, just like Steam, an own protocol which you can use to run games.

Example:

origin://launchgame/DR:235664700

This would launch the game "Wing Commander 3" if you have it installed. Unlike Steam, it would not bring up the installation dialogue, if it is not installed. To find out the product id, you would need to dig into the website code for each store page. I am not sure if this product id is the same for all countries like on Steam, but even there different AppID's for the same game do exist, such as low violence versions etc.

If you do not own the game you try to launch, you get a Window that tells you to activate the game via a product key.

Simply running origin:// launches Origin on the computer.

Example from the German Wing Commander 3 Page:

screenshot of website code

The highlighted ID is the one you are looking for. The store appends

?Title=Game&AutoDownload

to the URL as it would indicate that this can be used to download the game. But my tests with this have been unsuccessful so far.

It is a bit of a hassle to find the correct product code. Especially for games like Sim City, my tests have been unsuccessful. But in theory, you can use this to control your games without touching Origin. However, Origin comes to the front if you run any of these commands.




Pictures about "Are there any command-line arguments for Origin?"

Are there any command-line arguments for Origin? - Composition of seashells on pink background
Are there any command-line arguments for Origin? - People Walking on Sidewalk Near Brown Concrete Building
Are there any command-line arguments for Origin? - Black and White Light Post



What is command line arguments in origin?

Syntax of Command Line Arguments All command line arguments are optional. The syntax for passing arguments to Origin is: <Origin.EXE path and name>[-switch arg] [origin_file_name] [labtalk_scripts] -switch arg. Multiple switches can be passed.

How do I add command line arguments in origin?

Origin
  • Open the Library, then Right Click on the game's box art and select Game Properties.
  • Select Advanced Launch Options.
  • Write any arguments in the field box, then click Save.


  • What are the arguments in command line?

    Properties of Command Line Arguments:
    • They are passed to main() function.
    • They are parameters/arguments supplied to the program when it is invoked.
    • They are used to control program from outside instead of hard coding those values inside the code.
    • argv[argc] is a NULL pointer.
    • argv[0] holds the name of the program.




    Top 10 Launch Options for Apex Legends to Help you Win! (PC)




    More answers regarding are there any command-line arguments for Origin?

    Answer 2

    In Task manager, enable the column with "start command". Start a game with his shortcut while Origin isn't running and you'll see some interesting arguments.

    Answer 3

    1. Launch the game with origin closed , wait for it to start, alt tab out.
    2. open powershell. (admin rights)
    3. type in :

      Get-WmiObject Win32_process -Filter "name = 'Origin.exe'" | Select CommandLine

    4. Create the shortcut and set the command you got as target or add it as a non-steam game.

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

    Images: Stanislav Kondratiev, Brett Sayles, Pierre Blaché, Riya Kumari