Command Line Interface — Flows SDK 2.7.1 documentation

Command Line Interface

Flows SDK provides a CLI tool that simplifies packaging multiple flows.

Bundling Flows

The CLI tool allows bundling one or multiple flows into a single zip file, which simplifies the process of importing into a Hyperscience instance. It can also extract the functions of code blocks into separate python files during the bundling process. The tool is installed alongside Flows SDK when you install the Flows SDK wheel, and is accessible as hs-flows.

Syntax

hs-flows bundle INPUT [INPUT ...] [-o OUTPUT] [-e ENTRY_POINT] [-c CODE_POLICY] [-h]

where:

Examples

Print help message and exit:

hs-flows bundle --help

Bundle some_flow.py into example.zip with code inline in the json:

hs-flows bundle some_flow.py -o example.zip -c inline

Bundle all flows found in directory/flows into a default zip (flows-<timestamp>.zip) with code extracted into files:

hs-flows bundle directory/flows -c files

Bundle hello_flow.py and fork_flow.py into two_flows.zip with code inline in the json:

hs-flows bundle hello_flow.py fork_flow.py -o two_flows.zip