WASP command line options

As you’ve seen from some of the earlier tutorials, WASP has quite a few command line parameters that can change how it runs. You can run WASP as a normal executable or install it as a Windows Service. The complete set of command line options are displayed if you run WASP with /help or with an option that it doesn’t understand but I thought I’d list them all here for completeness and so that I can explain in a little more detail what each one does.

  • /help - display a list of help options, you can also use /?.
  • /noMessages - This must be the first argument passed to WASP and it’s the only one of the command line options that can be combined with others. This turns off the message boxes that ask for user confirmation when installing or removing either the service or counters or when checking for updates. Note that it also causes installation and removal failure due to “Access Denied” errors to fail straight away rather than offering you the option to run again with elevated credentials. The message box contents are logged to the debug log. This is intended for use in unattended and scripted installations and where you just don’t need to be told the results of the operation.
  • /install [name] - installs an instance of the WASP service named “name”. The name is optional and if not supplied then the default instance name of “WASP” is used.
  • /installCounters - installs the performance counters for all instances of WASP.
  • /remove [name] - removes an instance of the WASP service named “name”. The name is optional and if not supplied then the default instance name of “WASP” is used.
  • /removeCounters - removes the performance counters for all instances of WASP.
  • /checkForUpdates - checks http://wasp.ServerFramework.com/WASP-LatestVersion.html to see if a newer version of WASP is available.
  • /stop - requests all instances of WASP to shutdown and exit.
  • /pause - requests all instances of WASP to pause if they’re currently running or resume if they’re currently paused.
  • /run [name] - runs WASP as a normal windows executable rather than a Windows Service. Runs an instance of wasp named “name”. The name is optional and if not supplied then the default instance name of “WASP” is used. Note that running WASP without any command line arguments is the same as running WASP with the /run argument and no name; the default instance is run as a normal windows executable.