Running a plugin via the command line

You can run a headless instance of Relyze Desktop by passing /run as a command line argument. This lets you run arbitrary plugins which are not restricted to analyzing a single file (unlike the /analyze command line switch). An example of using the /run switch is as follows:

RelyzeCLI.exe /run /plugin "{19F5B074-2660-43D3-A6F1-BB596EDCB345}" /log "c:\\log.txt" /plugin_commandline "/arg1=valueA"

Alternatively you can specify the plugin to run via an absolute file path:

RelyzeCLI.exe /run /plugin "c:\users\foo\desktop\myplugin.rb.rb" /log "c:\\log.txt" /plugin_commandline "/arg1=valueA"

The plugins run() method will be called. You can specify more plugins by passing additional “/plugin <File|GUID>” arguments

A list of all the additional command line options are shown below:

/plugin <File|GUID> - Run a given plugin. To specify multiple plugins use a separate /plugin argument for each one. You can specify the plugin to run either via its unique GUID or an absolute file path.

/plugin_commandline “/opt1 /opt2=1234 /opt3=5678” - Specify any custom options to pass to all the plugins.

/library <c:\path\to\library> - Specify a directory to use for the library. All saved analysis archives will be placed in this directory.

/log <c:\log.txt> - Save all plugin output to a log file.