Make a config file, by asking the user to input values on the CMD.

This is a REPL (Read-Eval-Print Loop) function - it will ask the user for values, if they are not provided with arguments. So, in scripting and automation, the script writer needs to provide all the needed arguments.

Command Syntax

config-make [CONFIG_NAME][-d]
[compiler="<VALUE>"][server="<VALUE>"]
[database="<VALUE>"][user="<VALUE>"][password="<VALUE>"]
[PRESENTATION_FLAGS]


CONFIG_NAME - set a custom name for the config.
-d flag - a config name including a timestamp in the filename.
compiler - provides the compiler url for the config, instead of asking the user for the input.
server - provides the SQL server name for the config, instead of asking the user for the input.
database - provides the SQL database for the config, instead of asking the user for the input.
user - provides the SQL database username for the config, instead of asking the user for the input.
password - provides the SQL user’s password for the config, instead of asking the user for the input.
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.

Examples

php spark.php config-make
Create a config with default name. REPL.

php spark.php config-make -d
Create a config with default name. Add date to the name. REPL.

php spark.php config-make ConfigA.php
Create a config with a name. REPL.

php spark.php config-make ConfigA.php -d
Create a config with a name. Add date to the name. REPL.

php spark.php config-make compiler="VALUE" server="VALUE" database="VALUE" user="VALUE" password="VALUE"
Create a config with default name. Provide the needed values on the command line.

php spark.php config-make ConfigA.php compiler="VALUE" server="VALUE" database="VALUE" user="VALUE" password="VALUE"
Create a config with a name. Provide the needed values on the command line.

php spark.php config-make ConfigA.php -d compiler="VALUE" server="VALUE" database="VALUE" user="VALUE" password="VALUE"
Create a config with a name. Add date to the name. Provide the needed values on the command line.

Back