Package Exports
- bpmn-js-cli
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bpmn-js-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bpmn-js-cli
An extensible command line interface for bpmn-js.
Demo

Features
Model BPMN 2.0 diagrams in the browser, without a mouse
Full undo and redo functionality
Extensible through your own commands
Numerous built-in commands:
append sourceId type [deltaPos]
move shapeId delta [newParentId]
undo
redo
shape shapeId
shapes
save svg|bpmn
Quickstart
Get the list of available commands:
cli.help();
Get the list of shapes:
cli.shapes();
Export SVG or BPMN 2.0 xml
cli.save('svg' || 'bpmn');
Usage
Deploy the cli with bpmn-js:
var BpmnModeler = require('bpmn-js/lib/Modeler'),
CliModule = require('bpmn-js-cli');
var modeler = new BpmnModeler({
container: document.body,
additionalModules: [ CliModule ],
cli: { bindTo: 'cli' }
});
modeler.importXML('some-bpmn-xml');
Access the cli as cli
in your developer console (open via F12
in most browsers).
Use the cli to model BPMN 2.0 diagrams in your browser. Pain free.
License
MIT