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:
Verify installation:
Command Structure
Commands
init ๐ฑ
Initialize a new flowyml project.
Options:
- --template [NAME]: Use a specific template (default: basic). Available templates: basic, ml, cv.
- --force: Overwrite existing directory.
Example:
ui ๐ฅ๏ธ
Manage the flowyml UI server.
ui start
Start the UI server.
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.
ui status
Check if the UI server is running.
run โถ๏ธ
Execute a pipeline or script.
Options:
- --pipeline [NAME]: Name of the pipeline to run (if script contains multiple).
- --param [KEY=VALUE]: Override context parameters.
Example:
cache ๐งน
Manage the execution cache.
cache clear
Clear the cache.
Options:
- --pipeline [NAME]: Clear cache only for a specific pipeline.
- --days [N]: Clear cache entries older than N days.
config โ๏ธ
View or modify configuration.
config list
List all current configuration values.
config set
Set a configuration value.
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).