Petals CLI 2.4.0+

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

Changes (8)

View Page History
Petals CLI *2.3.0* works with Petals ESB Container *5.0.1* and higher, but may also work with previous versions of Petals.
Petals CLI *2.3.1+* works with Petals ESB Container *5.0.2* and higher, but may also work with previous versions of Petals.
Petals CLI *2.4.0+* works with Petals ESB Container *5.1.0* and higher, but may also work with previous versions of Petals.
{warning}

* *<configuration-properties>* is a list of '_<property-name>=<property-value>_', separated by a comma, where _<property-name>_ is the name of the property to configure with _<property-value>_. This argument is used only if the artifact is a component. It has no sense for other artifacts. This argument is exclusive with *<configuration-file>*.

{warning}Due to a limitation with the underlying library used to implement CLI, it is necessary to have a space between -D and its argument! (see [PETALSESBCLI-150|https://jira.petalslink.com/browse/PETALSESBCLI-150] for details){warning}

If the flag {{\-s,\-\-skip-startup}} is set, the start-up of the artifact is skipped, the artifact is only deployed.

{warning}Due to a limitation with the underlying library used to implement CLI, it is necessary to have a space between {{-D}} and its argument! (see [PETALSESBCLI-150|https://jira.petalslink.com/browse/PETALSESBCLI-150] for details){warning}

{tip}
Maven URLs are supported by this command: {{deploy -u mvn:org.ow2.petals/petals-se-xslt/LATEST/zip}}.
{tip}

{tip}Auto-completion is available on artifacts identifiers and artifact file names.{tip}

** next, the service assembly is deployed usually.

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}
deploy <maven-artifact> [<configuration-file> | <configuration-properties>] [-s,--skip-startup]
{code}
where:
* *<maven-artifact>* is the Maven identifiers of the artifact to install: _group-id:artifact-id:version\[:classifier\]_. If required, the Maven repository can be defined in the Maven configuration file ($HOME/.m2/settings.xml)
* *<configuration-file>* is the local file name or the URL of the properties file used to configure the artifact. This argument is used only if the artifact is a component. It has no sense for other artifacts. This argument is exclusive with {{<configuration-properties>}}.
* *<configuration-properties>* is a list of '_<property-name>=<property-value>_', separated by a white character, where _<property-name>_ is the name of the property to configure with _<property-value>_. This argument is used only if the artifact is a component. It has no sense for other artifacts. This argument is exclusive with *<configuration-file>*.

If the flag {{\-s,\-\-skip-startup}} is set, the start-up of the artifacts are skipped, the artifacts are only deployed.

Same remarks about lifecycle of the deployment from an URL are applicable for the deployment from a Maven artifact.

h3. Bulk Deployment and Start

* *<artifact-id>* is the JBI identifier of the artifact to start.

{tip}
Maven URLs are supported by this command: {{start-artifact -u mvn:org.ow2.petals/petals-se-xslt/LATEST/zip}}.
{tip}

{tip}Auto-completion is available on artifacts IDs, artifact file names and artifact types. The auto-completer for artifact identifiers displays only artifacts in state STOPPED or SHUTDOWNED.{tip}

{tip}Auto-completion is available on artifacts IDs, artifact file names and artifact types. The auto-completer for artifact identifiers displays only artifacts in state STARTED.{tip}

{tip}
Maven URLs are supported by this command: {{stop-artifact -u mvn:org.ow2.petals/petals-se-xslt/LATEST/zip}}.
{tip}

If the artifact to deploy is a component or a service assembly, the command '{{stop-artifact}}' will succeed only if the artifact state on Petals ESB side is 'STARTED', otherwise on error will occur.

* *<artifact-version>* is the artifact version to limit artifacts matching other criteria. Supported only for SL.

{tip}
Maven URLs are supported by this command: {{undeploy -u mvn:org.ow2.petals/petals-se-xslt/LATEST/zip}}.
{tip}

{tip}Auto-completion is available on artifacts IDs, artifact file names and artifact types.{tip}

{tip}Auto-completion is available on artifacts IDs, artifact file names and artifact types.{tip}

{tip}
Maven URLs are supported by this command: {{show -u mvn:org.ow2.petals/petals-se-xslt/LATEST/zip}}.
{tip}

h3. Reloading the external configuration of a JBI component