syft-flwr CLI provides commands to bootstrap Flower projects for federated learning with file-based communication and run simulations locally.
Installation
The CLI is automatically available after installing syft-flwr:Available Commands
bootstrap
Convert a Flower project to syft-flwr with datasite configuration
run
Run a syft-flwr project in simulation mode with mock data
version
Display the installed syft-flwr version
Getting Help
Display help for any command:-h and --help flags.
Common Workflow
Typical usage follows this pattern:- Create a Flower project using standard Flower tools
- Bootstrap the project with syft-flwr configuration:
- Run simulations with mock data for testing:
Command Structure
All commands follow this structure:- COMMAND: One of
bootstrap,run, orversion - ARGUMENTS: Required positional arguments (e.g., project directory)
- OPTIONS: Optional flags and parameters (prefixed with
-or--)
Interactive Prompts
When required options are omitted, the CLI will prompt you interactively:Output Format
The CLI uses colored output for better readability:- Cyan: Informational messages about operations in progress
- Green: Success messages
- Red: Error messages
Exit Codes
0: Command succeeded1: Command failed with an error
Version Information
Current version:0.5.0
Check your installed version: