scxml-cli

0.0.2-a • Public • Published

SCXML-CLI

This is the command-line client to SCXMLD, the SCXML orchestration server.

Installation

npm install -g scxmld scxml-cli

Usage

First, start SCXMLD:

scxmld

Then you can use the CLI:

  Usage: scxml [options] [command]


  Commands:

    create <path>                               Create an scxml file on given path
    save [options] <path>                       Save or update a state machine definition.
    cat <StatechartNameOrInstanceId>            Get details of a statechart or an instance
    ls [StateChartName]                         Get list of all statechart definitions or instances
    run [options] <StateChartName>              Create an instance with the statechart definition.
    send <InstanceId> <eventName> [eventData]   Send an event to a statechart instance.
    interact <InstanceId>                       Start REPL interface to send events to a statechart instance.
    rm <StatechartNameOrInstanceId>             Remove a statechart or an instance.
    subscribe <StatechartNameOrInstanceId>      Listen to changes on a statechart or an instance.
    viz [options] <StatechartNameOrInstanceId>  Open visualization of the statechart or realtime visualization of the instance.
    log <InstanceId>                            Get all events of the instance.
    help                                        Print out help
    *                                           Print out help

  Options:

    -h, --help  output usage information

Example

asciicast

Readme

Keywords

none

Package Sidebar

Install

npm i scxml-cli

Weekly Downloads

2

Version

0.0.2-a

License

Apache-2.0

Last publish

Collaborators

  • jbeard