Skip to main content

CLI

WLJS Notebook app registers (if you allowed this during the installation) CLI-tool globally in your operating system.

Here is a list of commands you can use

Open current folder

wljs .

Open a file by path

wljs "full path..."

Execute a command

wljs -c [command] [args...]

This pattern sends a command to all extensions used by WLJS Notebook. The list of known commands follows

share

It is handled by wljs-export-html extension, that allows to share notebooks programmatically in different forms

wljs -c share -i "path to wln notebook" -o "path to output file"

exports to Static HTML

wljs -c share -i "path to wln notebook"

exports to Static HTML using the same path

wljs -c share -i "path to wln notebook" -t html

exports to Static HTML

wljs -c share -i "path to wln notebook" -t html --cdn

exports to Static HTML and enables CDN

List of supported output types:

Version of CLI

wljs -v