This extension allows you to run Burp Suite's Spider and Scanner tools in headless mode via the command-line. It can:

For more detailed examples and the config file format, consult the extension's Github repository.