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 (8)

View Page History
- set: Assign a value to the system property named key.
- show: Print informations about a JBI artifact.
- shutdown: Shutdown the container.
- start: Start a JBI artifact or the container.
- stop: Stop a JBI artifact or the container.
- undeploy: Stop and uninstall or undeploy JBI artifacts.
- version: Print version informations about petals container.
If the argument {{<artifact-file>}} of the command {{deploy}} 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.

h4. Starting an artifact

An artifact can be started using the command '*{{start}}*' with the argument '*{{artifact}}*':
{code}
> ./petals-cli.sh -c start artifact [ <artifact-file> | [<artifact-type> <artifact-id>] ]
{code}
where:
- {{<artifact-file>}} is the local file name or the URL of the artifact to start
- {{<artifact-type>}} is the nature (SL, component, SA) of the artifact to start
- {{<artifact-id>}} is the JBI identifier of the artifact to start

h4. Stopping an artifact

An artifact can be stopped using the command '*{{stop}}*' with the argument '*{{artifact}}*':
{code}
> ./petals-cli.sh -c stop artifact [ <artifact-file> | [<artifact-type> <artifact-id>] ]
{code}
where:
- {{<artifact-file>}} is the local file name or the URL of the artifact to stop
- {{<artifact-type>}} is the nature (SL, component, SA) of the artifact to stop
- {{<artifact-id>}} is the JBI identifier of the artifact to stop

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

{code}

h3. Getting versions
h3. Operating Petals CLI

h4. Getting the versions of the Petals CLI
{code}

h3. Operating the container

h4. Getting the versions of the Petals node

{code}

h4. Stopping the container

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

h4. Shutdowning the container

The container can be shutdowned using the command '*{{stop}}*' with the argument '*{{container}}*' and the parameter '*{{--shutdown}}*':
{code}
> ./petals-cli.sh -c stop container --shutdown
Are you sure you want to shutdown the container (Y/n) ?
{code}
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.

h3. Operating the registry