Getting Started
Check your ZenML version:Command Categories
ZenML CLI commands are organized into several categories:Pipeline Commands
Manage pipelines, runs, builds, and deployments
Stack Commands
Configure and manage your MLOps stacks
Integration Commands
Install and manage third-party integrations
Deployment Commands
Deploy and manage pipeline deployments
Common Patterns
Using the Help Flag
Every command supports the--help flag to display detailed usage information:
Understanding Concepts
Use theexplain subcommand to learn about ZenML concepts:
Filtering List Commands
Many list commands support powerful filtering options. Use--help to see available filters:
Filter by Text Fields
ForTEXT or UUID fields, use these operators:
Filter by Boolean Fields
ForBOOL fields, use True or False:
Filter by Date Fields
ForDATETIME fields, use comparison operators with the format YYYY-MM-DD HH:MM:SS:
Combine Filters
Filters can be combined usingand and or keywords:
Sorting Results
Use the--sort_by option to sort list command output:
Output Formats
All list commands support multiple output formats via the--output or -o flag:
Custom Column Selection
Control which columns to display:Environment Variables
Set default output preferences:Global Options
These options work with most ZenML commands:| Option | Description |
|---|---|
--help | Show help message and exit |
--version, -v | Show ZenML version |
--debug | Enable debug logging |
--no-color | Disable colored output |
Working Without a Repository
Some commands (likezenml pipeline register or zenml pipeline run) can be executed outside a ZenML repository. When you do this:
- ZenML uses your current working directory as the source root
- You’ll see a warning message suggesting to run
zenml init - The command will still work, but relative imports are resolved from your current directory
For best results, run
zenml init at your project’s source code root before using ZenML commands.Component Labels
Many stack components support labels for organization and filtering:Next Steps
Initialize Project
Set up a new ZenML repository
Login to Server
Connect to ZenML Pro or a self-hosted server
Configure Stacks
Learn about stack management
Run Pipelines
Execute and manage pipeline runs
