Skip to content

Command line switches

Cong Liu edited this page Mar 30, 2016 · 11 revisions

NOTE: some content in this wiki applies only to 0.12 and earlier versions. For official documentation on 0.13 and later, see http://docs.nwjs.io

Useful switches for node-webkit:

--url="website-url"

Directly open "website-url".

--no-toolbar

Force disabling toolbar.

--data-path

Override the default data path (where cookies and localStorage etc. resides)

--disable-transparency

Completely turn off the code handling window transparency.

--disable-gpu --force-cpu-draw

force the drawing / compositing using cpu, needed for click through transparency,
more info on transparency visit: https://github.com/nwjs/nw.js/wiki/Transparency

And more: all the switches supported by Content API of Chromium

All the command line arguments can be predefined in the application's manifest file. See chromium-args in Manifest-format

Clone this wiki locally