Skip to content

CLI Reference

This section provides a comprehensive reference for the FlowerPower Command Line Interface (CLI).

Main Commands

flowerpower init

Initialize a new FlowerPower project.

This command creates a new FlowerPower project with the necessary directory structure and configuration files. If no project name is provided, the current directory name will be used as the project name.

Usage

flowerpower init [options]

Arguments

Name Type Description Default
project_name str Name of the FlowerPower project to create. If not provided, Required
base_dir str Base directory where the project will be created. If not provided, Required
storage_options str Storage options for filesystem access, as a JSON or dict string Required
job_queue_type str Type of job queue backend to use (rq) Required

Examples

1
2
3
$ flowerpower init

# Create a project with a specific name
1
2
3
$ flowerpower init --name my-awesome-project

# Create a project in a specific location
1
2
3
$ flowerpower init --name my-project --base-dir /path/to/projects

# Create a project with RQ as the job queue backend (default)
$ flowerpower init --job-queue-type rq

flowerpower ui

Start the Hamilton UI web application.

This command launches the Hamilton UI, which provides a web interface for visualizing and interacting with your FlowerPower pipelines. The UI allows you to explore pipeline execution graphs, view results, and manage jobs.

Usage

flowerpower ui [options]

Arguments

Name Type Description Default
port str Port to run the UI server on Required
base_dir str Base directory where the UI will store its data Required
no_migration str Skip running database migrations on startup Required
no_open str Prevent automatically opening the browser Required
settings_file str Settings profile to use (mini, dev, prod) Required
config_file str Optional custom configuration file path Required

Examples

1
2
3
$ flowerpower ui

# Run the UI on a specific port
1
2
3
$ flowerpower ui --port 9000

# Use a custom data directory
1
2
3
$ flowerpower ui --base-dir ~/my-project/.hamilton-data

# Start without opening a browser
1
2
3
$ flowerpower ui --no-open

# Use production settings
$ flowerpower ui --settings prod