GitHub user manueljordan added a comment to the discussion: How to run NetBeans
31 through terminal as a specific instance by project?
Hello mbien
Huge thanks for the reply
> check netbeans --help, it lists the main options.
Yes, tested as suggested in other comment written by you. The output is as
follows:
```bash
./netbeans --help
Usage: /home/manueljordan/Whiteroom/apache/netbeans/31/platform/lib/nbexec
{options} arguments
General options:
--help show this help
--jdkhome <path> path to Java(TM) 2 SDK, Standard Edition
-J<jvm_option> pass <jvm_option> to JVM
--cp:p <classpath> prepend <classpath> to classpath
--cp:a <classpath> append <classpath> to classpath
Module reload options:
--reload /path/to/module.jar install or reinstall a module JAR file
Additional module options:
--modules
--refresh Refresh all catalogs
--list Prints the list of all modules,
their versions and enablement status
--install <arg1>...<argN> Installs provided JAR files as
modules
--disable <arg1>...<argN> Disable modules for specified
codebase names
--enable <arg1>...<argN> Enable modules for specified
codebase names
--update <arg1>...<argN> Updates all or specified modules
--update-all Updates all modules
--extra-uc <arg> Add a extra Update Center (URL)
--direct-disable <arg1>...<argN> Disable module immediately
--start-java-language-server [<arg>] Starts the Java Language Server
--start-java-debug-adapter-server [<arg>] Starts the Java Debug Adapter Server
--open file1[:line1]... open specified file(s), possibly at
given location; can also pass project directories
--open-group NAME open a project group by shortened
or full name (or unique substring)
--close-group close any open project group
--list-groups list available project groups
Core options:
--laf <LaF classname> use given LookAndFeel class instead of the default
--fontsize <size> set the base font size of the user interface, in points
--locale <language[:country[:variant]]> use specified locale
--userdir <path> use specified directory to store user settings
--cachedir <path> use specified directory to store user cache, must be
different from userdir
--nosplash do not show the splash screen
```
> You can also use the command line to switch
How to switch? The `switch` term does not appear in the output shown above
What option should do the "switch" approach? Pls consider to share an example
> You can also use the command line to switch or **close project groups of the
> running instance**. netbeans --close-group. Its useful while testing releases
> at least ;)
Can you pls expand the idea? In the output appears:
```bash
--close-group close any open project group
```
I executed the following command (shown in multiple lines for better
presentation):
```bash
./netbeans --userdir $HOME/.netbeans/spring-boot
-J-Dnetbeans.projects.dir=$HOME/path/to/custom/NetBeansProjects/
--close-group
```
But I don't see nothing special when the IDE is opened and closed (`File` ->
`Exit`)
What is missing?
I want understand that option to later play with:
```bash
--list-groups list available project groups
```
Thanks for your support in advance
GitHub link:
https://github.com/apache/netbeans/discussions/9574#discussioncomment-18293511
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists