@orbi-ts/cli
v0.2.2
Published
Cli to run your Orbits App
Readme
Orbits-cli
The CLI to run Orbits workflows.
Install
Requirements
Global install
$ npm install -g @orbi-ts/cliProject install
$ npm install @orbi-ts/cli --save-devRunning it
$ orbits-cli actions <command> <parameters>if you installed in your project, run:
$ npx orbits-cli actions <command> <parameters>Available commands:
get [options] [action_id]: Get the provided action, or all actionsget-registry [options] [actions_files...]: Get available actions from the registrywatch [options] <action_id>: Watch the provided actionrun [options] <action_ref> [arguments...]: Run the provided actionpause [options] <action_id>: Update the database so that the provided action will pauseresume [options] <action_id>: Only effective on workflows. Update the database so that the provided action will resumereplay [options] <action_id>: Update the database so that the provided action will be replayedset-bag <action_id> <bag>: Update the action bag in the database. Merge existing bag with the given oneend [options] <action_id>: Update the database so that the provided action will end
Run orbits-cli help <command> for more info about the command options and parameters.
Note: Only the
run --local-workercommand will actually run the orbits job locally, other commands only update the action in the database.
Running an action locally
The run --local-worker commands allows you to run an action locally. Please make sure there is no other Orbits job using the same database as there may be conflicts.
Viewer
You can watch an action either using blessed based viewer or with a simpler text based alternative. In the former case, clicking on actions and workflows boxes will open an info panel with Ref, State, ID, Arguments, Bag and Result info that you can easily copy to clipboard by clicking on it.
