Skip to main content
Version: 7.2402.x.x RR

Server command-line interface

The server command-line interface (CLI) provides a low level interface to run the server process. It can be used by higher level tools like the administrative CLI or by the user directly.

Use the server CLI to start nevisMeta without involvement of other system components like for example systemd.

You find the script at /opt/nevismeta/bin/nevismeta-server.It provides the next command line options:

Command line argumentRemarksDefault
-c, --config PATHRequired. Path to the configuration file nevismeta.properties.No default
-n, --name NAMEUnique name for that Nevis component node.Overrides the value of the property server.name (in the nevismeta.properties file).See the server.name property in the nevismeta.properties file.
-p, --port PORTThe HTTP/S port to listen on. TLS must be configured in the config file and not as an argument.Overrides the value of the property server.port (in the nevismeta.properties file).See the server.port property in the nevismeta.properties file.
-H, --host HOSTThe HTTP/S host to bind on. By default binds on all IPv4 and IPv6 interfaces.Overrides the value of the property server.host (in the nevismeta.properties file).See the server.host property in the nevismeta.properties file.
--log-config PATHLog configuration file to be used.If a log configuration is provided, nevisMeta will use the given configuration file to determine how logging should behave. If no configuration file is provided, nevisMeta will log to the console by default.Not set
-V, --versionDisplay version and exit with status code 0.
-h, --helpShow complete and detailed usage and exit with status code 0.

Server CLI - command line arguments

Command-line arguments always prevail over the configuration in the nevismeta.properties file!

Example usage of the standalone CLI

To start an existing nevisMeta instance named "nevismeta" without using systemd to manage the service, set the following commands:

# set working directory
cd /var/opt/nevismeta/nevismeta

/opt/nevismeta/bin/nevismeta-server --config
/var/opt/nevismeta/nevismeta/conf/nevismeta.properties --log-config
/var/opt/nevismeta/nevismeta/conf/log4j.xml