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

View Page History
{section}
{column}
h1. Introduction

Petals CLI is a command line client to administrate a set of Petals nodes.
Petals CLI has 4 interaction modes:
* *Interactive Mode:* [in this mode|#Interactive console], the user types in commands directly in the shell.
* *Scripting Mode:* [in this mode|#Execution of a Petals script file], Petals CLI executes a script file with Petals CLI commands.
* *Executable Mode:* [in this mode|#Execution of a Petals CLI command directly on the command line], Petals CLI is launched with a command to execute directly.
* *Redirection Mode:* [in this mode|#Execution of an inlined Petals script], Petals CLI takes the commands to execute from the standard input.

To work, Petals CLI needs to establish a connection with a Petals node.
Petals CLI works with Petals 4 and higher, but may also work with Petals 3 versions. The connection is a JMX connection (see the credentials defined in the _topology.xml_ file of Petals).
{column}
{column:width=40%}
{panel:title=Table of contents}{toc}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{section}

h1. Usage of Petals CLI

{color:red}A revoir (en dernier){color}

{code}
usage: Petals JMX Command Line Interface
Which evolution would you like on Petals? Share it! http://www.petalslink.com/feedback
{code}
{column}
{column:width=40%}
{panel:title=Table of contents}{toc}{panel}
{panel:title=Contributors}{contributors:order=name|mode=list}{panel}
{column}
{section}

h1. Use cases
h1. Petals CLI: the Basis

Petals CLI realizes the following use-cases.

h2. Petals CLI capabilities about script and shell usages

h3. Execution of an inlined Petals script

{color:red}Pas clair. Expliciter un peu mieux.{color}

Launching the Petals CLI with the following command line executes commands provided through the 'stdin':
{code}
- the attribute {{lastErrorCode}} is an argument of the command {{exit}} to return the return code of the last executed command.


h1. Getting Started with Petals CLI

h2. Connection to a Petals node

{code}

h3. Interacting with several Petals nodes without exiting Petals CLI

{color:red}"connect" et "disconnect" seraient plus parlantes.{color}

In interactive mode or script mode, we should be able to close a connection and open another one without leaving Petals CLI. This is done by commands '{{{*}close{*}}}' and '{{{*}open{*}}}'. If no arguments are set on command 'open', default values (localhost:7700, login=petals, pwd=petals) are used:
{code}
h3. Default connection

{color:red}Demander confirmation si pas d'argument. "Would you want to connect..."{color}

By default (if no argument or option is set):
- In mode 'console', the connexion is establish on command '{{{*}open{*}}}' to localhost:7700 with credentials 'petals/petals',
Conected on localhost:7700 with 'petals'
{code}

- In mode 'command line', if no argument or option is set, a connexion is established on localhost:7700 with credentials 'petals/petals'
{code}
{code}

{color:red}Les identifiants par défaut devraient être inclus dans un fichier de propriétés embarqué avec Petals CLI. S'il y a d'autres préférences à définir, elles seront dans ce fichier de propriétés.{color}

h2. Petals CLI commands

{color:red}Organiser la doc' / spec' par type d'opérations : registry, conteneur, gestion d'artéfacts, versions...{color}

h3. Operating the JBI artifacts