Petals CLI

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

Changes (3)

View Page History
h3. Deployment of an Artifact located in a Maven repository

{warning}Not available. Coming soon !{warning}

Petals CLI is able to deploy and start a JBI artifact located into a Maven repository by using the following command:
{code}

displays the directory in which Petals CLI runs.
The return code of the wrapping command is the return code of the system command.

h1. Known Problems

h2. Error about missing options

For commands requiring at least one option, an error can occur if the operand flag ({{'--'}}) is missing:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c deploy -u file:///.../my-archive.zip
ERROR on command 'deploy': Missing option(s):b, u
usage: deploy [-b <url> | -u <url>] [-D
<property1=value1,property2=value2> | -f <configuration-file>]
{code}
This is due to the option overriding: the command deploy and Petals CLI have the same option: {{-u}}. Both {{-u}} are processed by Petals CLI option parsing. Just add {{'--'}} before the command to exclude the second {{'u'}} of the Petals CLI option parsing. So it will be available for the command option parsing.