Skip to main content

Internal CLI Arguments

neu CLI wraps Neutralinojs's internal CLI arguments to provide a simple interface for developers. For example, the neu run command internally calls ./bin/neutralino-linux_x64 --load-dir-res --path=. --neu-dev-extension --neu-dev-auto-reload on Linux. You can build neu CLI, Node.js, and npm to build Neutralinojs apps. But, neu CLI offers a simple, fast, and easy tooling for application developers to create, manage, and bundle Neutralinojs apps.

Neutralinojs supports the following CLI arguments. Many internal CLI arguments help developers to override default configuration defined inside the neutralino.config.json file. If you use Neutralinojs as a part of your source files via child process API, you can use the following arguments to configure the application instance.



Notifies Neutralinojs server to fetch files from the resources directory. If this flag is not provided, Neutralinojs server will load resources from the resources.neu file.


If Neutralinojs fails to load resources resources.neu, this flag is automatically enabled internally to find resources from the app directory. Therefore, you can double click on the binary instead of neu run while developing apps.


Uses a custom configuration file instead of the default neutralino.config.json file for loading the app configuration JSON. This CLI option is helpful for setting a development-only configuration file (i.e., --config-file=neutralino-dev.config.json).


The neu build command won't typically include custom configuration files for the final application bundle — it only embeds the default neutralino.config.json file allowing you to store production app configuration.


Overrides the resources path with a relative path or absolute path. This will change the NL_PATH global variable.


Overrides the default mode. Accepted values are: window, browser, and cloud.


Listens to the neuDev_reloadApp event. When this CLI argument is provided, each modification done to the resources will automatically reload the application. The neu run command executes Neutralinojs with this flag by default.

--neu-dev- is a reserved CLI argument prefix for Neutralinojs process. Therefore, avoid adding custom arguments with --neu-dev- prefix. Feel free to use the --dev- prefix for your development-related CLI flags.


Loads js.neutralino.devtools extension internally for development purposes. The neu CLI uses this CLI argument to establish an IPC with the application process. This option only works if application resources are loaded from a directory (won't work for end-users).


Overrides the URL on the application.


Overrides the application port and will change the NL_PORT global variable. If 0 is given, Neutralino will use a random available port.


Overrides the logging feature status.


Overrides the log file feature status.


Overrides auth details export setting.


Overrides extensions feature's availability.


Enables or disables the background server (Disables static file servering feature and native API messaging). If you load a remote URL to the webview, you can set this option to true.

Window mode#

The following CLI arguments are used when the application runs with the window mode.


Overrides the window title.


Overrides the window icon.


Overrides the window's initial full screen status.


Overrides the window's initial top-most mode.


Overrides the window's borderless mode.


Overrides the window's initial maximize status.


Overrides the window's initial visibility status.


Overrides the window's initial maximizable status.


Overrides the window width.


Overrides the window height.


Overrides the window's minimum width.


Overrides the window's minimum height.


Overrides the window's maximum width.


Overrides the window's maximum height.


Overrides the window left (x) position.


Overrides the window top (y) position.


Overrides the window's initial center positioning setup.


Overrides the window's initial resizability status.


Overrides the close button's behavior.


Automatically opens the developer tools window.


Overrides the saved window state feature setting.


Overrides the custom user agent setting.

Chrome mode#

The following CLI arguments are used when the application runs with the chrome mode.


Chrome window's width.


Chrome window's height.


Additional arguments for the Chrome process. Read more about chrome mode from here


The right hand value is optional for the for boolean type CLI arguments. Therefore, you can use --window-full-screen instead of --window-full-screen=true. However, if you define window.fullScreen as true and you need to override it as false you have to use --window-full-screen=false.