CLI Commands
Reference for CLI commands implemented in Novadesk source code.
Table of Contents
Novadesk.exe
Novadesk supports command-line arguments to control a running instance and to load scripts.
Exit Command
Gracefully shuts down Novadesk.
Novadesk.exe /exit
Novadesk.exe -exit
Novadesk.exe --exitList Loaded Scripts
Print loaded script paths from the running instance to stdout.
Novadesk.exe --list-scriptsWrite loaded script paths to a file.
Novadesk.exe --list-scripts-file "C:\temp\novadesk-scripts.txt"Script Control
Refresh one loaded script:
Novadesk.exe --refresh "C:\path\widget\index.js"Reload all scripts:
Novadesk.exe --refresh-allUnload one script:
Novadesk.exe --unload "C:\path\widget\index.js"Load script(s) into the running instance:
Novadesk.exe --load "C:\path\widgetA\index.js" --load "C:\path\widgetB\index.js"
Novadesk.exe "C:\path\widgetA\index.js" "C:\path\widgetB\index.js"Runtime Settings
Hardware acceleration:
Novadesk.exe --enable-hardware-acceleration
Novadesk.exe --disable-hardware-accelerationDebugging:
Novadesk.exe --enable-debugging
Novadesk.exe --disable-debuggingLogging:
Novadesk.exe --enable-logging
Novadesk.exe --disable-loggingSave logs to file:
Novadesk.exe --enable-save-log-to-file
Novadesk.exe --disable-save-log-to-fileNew Instance Mode
Force launching a new Novadesk process instead of forwarding to an existing one:
Novadesk.exe --new-instance
Novadesk.exe --new-instance "C:\path\widget\index.js"INFO
Novadesk enforces single-instance execution using a global mutex. When you run a command:
- If Novadesk is not running: a new instance starts. CLI settings (
--enable-*/--disable-*) are applied at startup. - If Novadesk is already running: supported commands are forwarded to the existing instance via Windows messaging.
- Non-flag arguments are treated as script paths.
Internal Argument (Not for normal use)
--request-single-instance-lock is used internally by Novadesk and manager processes.
Novadesk Widget Maker (nwm)
The nwm tool is the recommended way to initialize, run, and build Novadesk widgets.
Commands
init
Scaffolds a new widget project from a template.
nwm init <widget-name>run
Launches the current widget in Novadesk.
nwm runbuild
Builds a distributable package for your widget.
nwm build-v / --version
Shows the current version of the nwm tool.
nwm -v
nwm --version-h / --help
Displays the help menu with usage instructions and available commands.
nwm -h
nwm --helpInternal Installer Command
nwm --install exists for self-extracting installers generated by nwm build. It is not a normal development command.
ndpkg_installer.exe
ndpkg_installer.exe can accept a .ndpkg file path directly:
ndpkg_installer.exe "C:\path\widget.ndpkg"If no .ndpkg path is provided, the installer opens a file picker.