CLI Reference¶
The FlowerPower CLI provides command-line tools for managing projects and pipelines. It is built with Typer and accessible via the flowerpower command.
Usage¶
Run flowerpower --help for a full list of commands.
Commands¶
pipeline¶
Manage pipelines.
pipeline run¶
Run a pipeline.
Usage:
Arguments:
- NAME: Name of the pipeline to run [required]
Options:
- --executor TEXT: Executor to use for running the pipeline
- --base-dir TEXT: Base directory for the pipeline
- --inputs TEXT: Input parameters as JSON, dict string, or key=value pairs
- --final-vars TEXT, --outputs TEXT, -o TEXT: Final variables as JSON or list (alias: --outputs)
- --config TEXT: Config for the hamilton pipeline executor
- --cache TEXT: Cache configuration as JSON or dict string
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --with-adapter TEXT: Adapter configuration as JSON or dict string
- --max-retries INTEGER: Maximum number of retry attempts on failure [default: 0] (deprecated; prefer nested retry config)
- --retry-delay FLOAT: Base delay between retries in seconds [default: 1.0] (deprecated; prefer nested retry config)
- --jitter-factor FLOAT: Random factor applied to delay for jitter (0-1) [default: 0.1] (deprecated; prefer nested retry config)
Examples:
pipeline new¶
Create a new pipeline.
Usage:
Arguments:
- NAME: Name of the pipeline to create [required]
Options:
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --overwrite: Overwrite existing pipeline if it exists [default: no]
Examples:
pipeline delete¶
Delete a pipeline.
Usage:
Arguments:
- NAME: Name of the pipeline to delete [required]
Options:
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --cfg: Delete only the configuration file [default: no]
- --module: Delete only the pipeline module [default: no]
Examples:
pipeline show-dag¶
Show the DAG of a pipeline.
Usage:
Arguments:
- NAME: Name of the pipeline to visualize [required]
Options:
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --format TEXT: Output format (e.g., png, svg, pdf). If 'raw', returns object. [default: png]
Examples:
pipeline save-dag¶
Save the DAG of a pipeline to a file.
Usage:
Arguments:
- NAME: Name of the pipeline to visualize [required]
Options:
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --format TEXT: Output format (e.g., png, svg, pdf) [default: png]
- --output-path TEXT: Custom path to save the file (default:
Examples:
pipeline show-pipelines¶
List all pipelines.
Usage:
Options:
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --format TEXT: Output format (table, json, yaml) [default: table]
Examples:
pipeline show-summary¶
Show summary of pipelines.
Usage:
Options:
- --name TEXT: Name of specific pipeline (all if not specified)
- --cfg: Include configuration details [default: True]
- --code: Include code/module details [default: True]
- --project: Include project context [default: True]
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
- --to-html: Output summary as HTML [default: no]
- --to-svg: Output summary as SVG (if applicable) [default: no]
- --output-file TEXT: Save output to file instead of printing
Examples:
pipeline add-hook¶
Add a hook to a pipeline.
Usage:
Arguments:
- NAME: Name of the pipeline to add the hook to [required]
Options:
- --function TEXT: Name of the hook function [required]
- --type [MQTT_BUILD_CONFIG]: Type of hook to add [default: MQTT_BUILD_CONFIG]
- --to TEXT: Target node name or tag (required for node hooks)
- --base-dir TEXT: Base directory for the pipeline
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
Examples:
init¶
Initialize a new FlowerPower project.
Usage:
Options:
- --name TEXT: The name of the project
- --base-dir TEXT: Base directory where the project will be created
- --storage-options TEXT: Storage options as JSON, dict string, or key=value pairs
- --log-level TEXT: Logging level (debug, info, warning, error, critical)
Examples: ```bash
Initialize project¶
flowerpower init --name my_project