CLI Options
ID: CLI
You can set the hostname, port and graph file path using CLI options:
en --hostname 10.0.1.2 -p 443 --graph ./graphs/my-graph.toml
Options
Graph
The relative or absolute path to the graph definition TOML file.
Variants: --graph, -g
Default: ./static/graph.toml
Examples:
en -g graph.toml en --g ./static/my-graph.toml
Hostname
The IP address where the en server will be accessible.
Variants: --hostname, -h
Default: 0.0.0.0
Examples:
en -h localhost en --hostname 10.120.0.5
Port
The port where the en server will be accessible.
Variants: --port, -p
Default: A random available port assigned by the operating system
Examples:
en -p 3003 en --port 3000
Using multiple options
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.