Petals CLI

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (18)

View Page History
h3. Bulk Undeployment and Stop

To undeploy several artifacts in one command, just put them in a local directory and execute the '_undeploy_' command:
The undeployment command is able to stop and uninstall/undeploy several JBI artifact in one shoot using the bulk mode:

{code}
> ./petals-cli.sh -y - << EOF
undeploy [ -b [<artifact-directory>] ] [ -y ]
EOF {code}
> ./petals-cli.sh -C
where *[<artifact-directory>* is a local directory where archives of the artifacts to undeploy are put.

Type 'help' for help.
------------------------------------------------------------------------------
petals-cli> undeploy -b
A confirmation is expected, except if the '_yes_' flag is set on the command line or as command argument, otherwise an error will occur.
A confirmation message is displayed in the console mode, except if the '_yes_' flag is set on the command line or as command argument.
{code}
> ./petals-cli.sh -y -c -- undeploy -b
> ./petals-cli.sh -c -- undeploy -b -y
> ./petals-cli.sh -c -- undeploy -b
ERROR on command 'undeploy': A confirmation is required. Use option: : '-y'
{code}


h3. Stopping the container

The container can be stopped by using the '_stop_' command with the argument '_container_':
The container can be stopped by using the command '_stop_':
{code}
> ./petals-cli.sh -c -- stop container
{code}

h3. Shutdowning the container

The container can be shutdowned by using the command '_stop_' with the argument '_container_' and the parameter '_\--shutdown_'.
{code}
> ./petals-cli.sh -C
petals-cli@host:port> stop container --shutdown
Are you sure you want to shutdown the container? (y/n)
{code}
A confirmation message is displayed in the console mode, except if the '_yes_' flag is set on the command line or as command argument.
{code}
> ./petals-cli.sh -y -c -- stop container --shutdown
> ./petals-cli.sh -c -- stop container --shutdown -y
> ./petals-cli.sh -c -- stop container --shutdown
ERROR on command 'stop': A confirmation is required. Use option: : '-y'
{code}