CLI Options

ID: CLI

You can set the hostname, port and graph file path using CLI options:

For the hostname, use -h or --hostname:

en -h localhost
en --hostname 10.120.0.5

If unspecified, the default is 0.0.0.0.

For the port, use -p or --port:

en -p 3003
en --port 3000

If unspecified, the default is to use a random available port assigned by the operating system.

For the graph path, use -g or --graph:

en -g graph.toml
en --g ./static/my-graph.toml

If unspecified, the default is ./static/graph.toml.

You can combine these options as you wish:

en -h localhost -p 3000
en -p 3003 --host localhost --graph ./graph.toml
en --g ./graph.toml -p 1312

If an option is specified more than once, the last use will override any previous ones.