New Documentation of Petals CLI-Command Line Interface

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

Changes (4)

View Page History
- {{<configuration-properties>}} is a list of '{{<property-name>=<property-value>}}', separated by space, where {{<property-name>}} is the name of the property to configure with {{<property-value>}}. This argument is used only if the component is a component. It has no sens for other artifacts. This argument is exclusive with {{<configuration-file>}}.

If {{<artifact-file>}} is a local directory, all artifacts of the directory are deployed. In this case a confirmation is expected, except if the flag 'yes' is set on the command line. A confirmation message is displayed in the mode 'console', except is the flag 'yes' is set on the command line.
{code}
> ./petals-cli.sh -y -f - << EOF
deploy /tmp
EOF
> ./petals-cli.sh -C

Type 'help' for help.
------------------------------------------------------------------------------
petals-cli> deploy /tmp
Are you sure you want to deploy all artifacts of directory '/tmp' (Y/n) ?
{code}

h3. Uninstallation/Undeployment and stop of an artifact in one command

- {{<artifact-id>}} is the JBI identifier of the artifact to undeploy

If no arguments is set, all artifacts are undeployed. In this case a confirmation is expected, except isf the flag 'yes' is set on the command line. A confirmation message is displayed in the mode 'console', except is the flag 'yes' is set on the command line.
{code}
> ./petals-cli.sh -y -f - << EOF
------------------------------------------------------------------------------
petals-cli> undeploy
Are you sure to undeploy all artefacts (Y/n) ?
Are you sure you want to undeploy all artifacts of the Petals node (Y/n) ?
{code}