bpm-engine-cli
v1.0.2
Published
BPM Engine CLI - Command line interface for BPM Engine
Readme
BPM Engine CLI
Command-line interface pour gérer vos workflows BPM depuis votre terminal.
Installation
npm install -g bpm-engine-cliConfiguration
bpm initCela vous demandera:
- URL du serveur BPM (ex: http://localhost:3000)
- API Key (disponible depuis le dashboard)
Commandes
Lister les workflows
bpm listVoir le schéma d'un workflow
bpm schema internship_requestAffiche:
- Champs requis
- Étapes humaines
- Exemple de payload
Exécuter un workflow
bpm execute <type> '<payload_json>'Exemple:
bpm execute internship_request '{"n1_email":"[email protected]","n2_email":"[email protected]"}'Vérifier le statut
bpm status <execution_id>Approuver une étape humaine
bpm approve <execution_id> --comment "Approved"Rejeter une étape humaine
bpm reject <execution_id> --comment "Reason for rejection"Créer un workflow
bpm create workflow.jsonOptions
| Option | Description |
|--------|-------------|
| -j, --json | Output au format JSON |
| -c, --comment | Commentaire pour approve/reject |
| -h, --help | Aide |
| -V, --version | Version |
Configuration
La configuration est stockée dans ~/.bpm/config.json:
{
"url": "http://localhost:3000",
"apiKey": "bpm_live_xxx"
}