I sometimes need to run Gramps from a terminal so I can see the extra warnings and error messages. Or to start in developer/debug mode.
But since I normally run Gramps from an icon on the desktop GUI, it can be challenging to discover how to launch from terminal/command line. You’ll need to fine the file path and command line syntax for launching the application or passing parameters.
Finding the filepath can be the more challenging part of this task. Particularly since that part varies by OS, the flavor of OS, and installation method used to install Gramps.
Windows
The All-In-One installer for Gramps for Windows adds an icon for launching in Terminal Mode in addition to the icon for launching normally. During install, they can be added to the Desktop, application launch bar or just to the Windows Menu. But if you need to use optional switches from the command line, you still need to learn how to navigate to the Gramps installation directory. (Since the Gramps directory is not part of the command PATH environment variable.)
Windows XP
When I was running Gramps from Windows XP, there was Gramps shortcut icon on the desktop (or in the Windows menu). The context menu for that shortcut icon offered to show me the target file and the path to the gramps folder/directory. Then I could open the terminal, Change Directory (cd) to that path and use the command line syntax outlined in the wiki.
Windows 10
Windows 10 complicated things a bit by having a shortcut icon to a shortcut icon.
And the context menu options for each icon were different to do the drilling down. But after the 2nd icon, the target file and path were again shown. So the next process was the same. (open the terminal, Change Directory (cd) to that path and use the command line syntax outlined in the wiki.)
MacOS
If you installed into the normal location (Applications folder), then the command line interface would be:
$ /Applications/Gramps.app/Contents/MacOS/Gramps
If you installed outside of the normal Applications folder, you need to make the appropriate adjustments. For instance, if you installed on your desktop, it would be:
$ ~/Desktop/Gramps.app/Contents/MacOS/Gramps