Skip to content

πŸ›  CLI Reference

πŸ› οΈ CLI Quick Start

Go from zero to a running pipeline in 5 minutes using the FlowyML command line.

⚑ 5 Minutes 🌱 Init ▢️ Run πŸ–₯️ Visualize

Full Reference

This page is a quick-start tutorial. For the complete list of every command, flag, and environment variable, see the CLI Reference.

Step 1 β€” Install FlowyML

pip install flowyml

Verify it worked:

flowyml --version

Step 2 β€” Create a Project

flowyml init my-project
cd my-project

This scaffolds everything you need:

my-project/
β”œβ”€β”€ flowyml.yaml         # Stack & resource config
β”œβ”€β”€ requirements.txt     # Python dependencies
└── src/
    └── pipeline.py      # Your first pipeline

Templates

Use --template ml or --template cv for pre-built ML or Computer Vision project structures.

Step 3 β€” Run Your Pipeline

flowyml run src/pipeline.py

You should see:

Fetching data...
Processing 5 items...
βœ“ Pipeline finished successfully!

That's it!

Your pipeline ran locally with caching enabled by default. Run it again β€” cached steps are skipped automatically.

Step 4 β€” Launch the UI

flowyml ui start

Open http://localhost:8080 to see the DAG visualization, run history, and artifact inspector.

Stop it when you're done:

flowyml ui stop

Step 5 β€” Pass Parameters

Override context values from the command line without changing code:

flowyml run src/pipeline.py \
  --context dataset_size=100 \
  --context multiplier=5

Step 6 β€” Try a Dry Run

See what would happen without actually executing:

flowyml run src/pipeline.py --stack production --dry-run

Environment Variables

All FlowyML environment variables use the uppercase FLOWYML_ prefix:

Variable Default Description
FLOWYML_HOME ~/.flowyml FlowyML home directory
FLOWYML_ENV dev Environment name (dev, staging, prod)
FLOWYML_UI_PORT 8080 Default UI port
FLOWYML_LOG_LEVEL INFO Logging level

Handy Aliases

Add to your ~/.zshrc or ~/.bashrc:

alias fml='flowyml'
alias fml-run='flowyml run'
alias fml-ui='flowyml ui start'

πŸš€ What's Next?

πŸ“– Full CLI Reference

Every command, flag, and environment variable in one place.

CLI Reference β†’

βš™οΈ Configuration

Deep dive into flowyml.yaml, stacks, and resource presets.

Configuration β†’

🎒 Core Concepts

Learn Pipelines, Steps, Context, and Assets in depth.

Core Concepts β†’