SingleFile can be launched from the command line by running it into a (headless) browser. It runs through Node.js as a standalone script injected into the page to save instead of being embedded into a WebExtension. To connect to the browser, it can use Puppeteer or Selenium WebDriver. Alternatively, it can also emulate a browser in Node.js with jsdom.
This is a work in progress.
PATH environment variable. Otherwise you will need to use the --browser-executable-path option to help SingleFile locating the executable.PATH environment variable.$ unzip master.zip .
cli directory.$ cd cli
$ npm install
single-file.js executable (Linux/Unix/BSD etc.).$ chmod +x single-file.js
$ ./single-file.js --help (Linux/Unix/BSD etc.)
> node single-file.js --help (Windows)
wikipedia.html$ ./single-file.js https://www.wikipedia.org wikipedia.html (Linux/Unix/BSD etc.)
> node single-file.js https://www.wikipedia.org wikipedia.html (Windows)