Skip to content

CLI Reference ๐Ÿ’ป

The flowyml Command Line Interface (CLI) is your primary tool for managing projects, running pipelines, and controlling the UI.

Installation

The CLI is installed automatically with the package:

pip install flowyml

Verify installation:

flowyml --version

Command Structure

flowyml [COMMAND] [SUBCOMMAND] [OPTIONS]

Commands

init ๐ŸŒฑ

Initialize a new flowyml project.

flowyml init [PROJECT_NAME]

Options: - --template [NAME]: Use a specific template (default: basic). Available templates: basic, ml, cv. - --force: Overwrite existing directory.

Example:

flowyml init my-ml-project --template ml

ui ๐Ÿ–ฅ๏ธ

Manage the flowyml UI server.

ui start

Start the UI server.

flowyml ui start

Options: - --port [PORT]: Port for the frontend (default: 8080). - --backend-port [PORT]: Port for the backend API (default: 8000). - --host [HOST]: Host to bind to (default: 127.0.0.1). - --daemon: Run in background (daemon mode).

ui stop

Stop the running UI server.

flowyml ui stop

ui status

Check if the UI server is running.

flowyml ui status

run โ–ถ๏ธ

Execute a pipeline or script.

flowyml run [SCRIPT_PATH]

Options: - --pipeline [NAME]: Name of the pipeline to run (if script contains multiple). - --param [KEY=VALUE]: Override context parameters.

Example:

flowyml run src/pipelines/training.py --param epochs=50

cache ๐Ÿงน

Manage the execution cache.

cache clear

Clear the cache.

flowyml cache clear

Options: - --pipeline [NAME]: Clear cache only for a specific pipeline. - --days [N]: Clear cache entries older than N days.

config โš™๏ธ

View or modify configuration.

flowyml config

config list

List all current configuration values.

config set

Set a configuration value.

flowyml config set ui.port 3000

Environment Variables ๐ŸŒ

You can also configure flowyml using environment variables. All variables are prefixed with flowyml_.

  • flowyml_HOME: Path to the flowyml home directory (default: ~/.flowyml).
  • flowyml_ENV: Environment name (e.g., dev, prod).
  • flowyml_UI_PORT: Port for the UI.
  • flowyml_LOG_LEVEL: Logging level (DEBUG, INFO, WARNING, ERROR).