Skip to content
Eiichiro Uchiumi edited this page May 3, 2020 · 1 revision

<PRODIGY_HOME>/prodigy-cli/target/bin/prodigy script handles commands to operate Prodigy deployment. There are two ways of execution of prodigy script as the following synopses.

One liner (for including into your own operational scripts):

$ prodigy [options] [command] [parameters]

REPL:

$ prodigy [options]

prodigy script takes options of -v or --verbose to print verbose logs and --config <path> to specify the configuration file to load.

There are some commands available to pass the script as below.

deploy

Description

Deploys new control plane stack with the specified profile.

Synopsis

deploy <profile>

core profile is reserved and not allowed to specify.

configure

Description

Prints all existing profile configurations, or changes the default and current profile to the specified one.

Synopsis

configure

If no options are passed, it prints all existing profile configurations.

configure --default <profile>

If --default option is passed, it changes the default and current profile to the specified one.

inject

Description

Schedules a new fault entry of the specified fault name and parameters.

Synopsis

inject <fault-name> [json-params]

json-params must be a string of valid JSON object like {"param1" : "hello", "param2" : 2}.

eject

Description

Unschedules existing fault entry of the specified fault id.

Synopsis

eject <fault-id>

status

Description

Prints general status of all existing fault entries, or detail status of the specified one.

Synopsis

status

If no arguments are passed, it prints general status of all existing fault entries.

status <fault-id>

If fault-id is passed, it prints detail status of the fault of the specified id.

push

Description

Adds fault classes to the Prodigy deployment.

Synopsis

push <fault-jar>

fault-jar must be the path to JAR file which includes fault classes to add.

faults

Description

Prints the name and class of all existing fault classes.

Synopsis

faults

help

Description

Prints help content of the specified command.

Synopsis

help <command>

hint

Description

Prints available commands.

Synopsis

hint

exit

Description

Exits from the current REPL session.

Synopsis

exit