Skip to content

setup

Helps creating a configuration file.

Mode:

The setup command has two modes: interactive and non-interactive.

The interactive mode will guide you through the information it needs to create the file. The non-interactive mode demands that you provide the information with command options.

Syntax:

shell
sfiler-config-cli [options] setup [-i] [command options]
Command optionsRequired / OptionalDescription
-iOptionalRuns the command in interactive mode. (Default: true)
-uRequired when in non-interactive modeThe user name used to connect to the database
-pRequired when in non-interactive modeThe password used to connect to database
--password-stdinOptionalReads the password from stdin. This will override the password option
-UOptionalThe URL used to connect to the database. Either provide it or the DBMS, host, port, and database name. This will override all the other database options.
-DRequired when in non-interactive modeThe DBMS (Database Managment System) of the database
-hOptional when providing the URL, required otherwise in non-interactive modeThe host of the database
-POptional when providing the URL, required otherwise in non-interactive modeThe port of the database
-dOptional when providing the URL, required otherwise in non-interactive modeThe database name
-drOptionalThe driver used to connect to the database. This will override the default driver for the specified DBMS
-diaOptionalThe Hibernate dialect used to connect to the database. This will override the default dialect for the specified DBMS
-oOptionalThe options used to connect to the database. This will be appended to the URL
-OOptionalThe output file where the configuration will be saved. Default is ./sfiler.conf
-vOptionalShow verbose output
-qOptionalShow no output

Example:

Interactive mode:

shell
./sfiler-config-cli.sh setup -i

Non-interactive mode:

shell
./sfiler-config-cli.sh setup -u sfiler-user -p sfiler-pwd -D MARIADB -h 127.0.0.1 -P 1442 -d sfile

This command will create a working configuration file named sfiler.conf in the current working directory for the specified database configuration.