- Register a stack component to configure each tool using
zenml <STACK_COMPONENT> register
. - Register a stack to bring a particular combination of stack components together using
zenml stack register
. - Register a stack flavor to add a new tool to the ZenML flavor registry, if the tool you are looking for is not supported out-of-the-box, or if you want to modify standard behavior of standard flavors.
Registering Stack Components
First, you need to create a new instance of the respective stack component with the desired flavor usingzenml <STACK_COMPONENT> register <NAME> --flavor=<FLAVOR>
. Most flavors require further parameters that you can pass as additional arguments --param=value
, similar to how we passed the flavor.
E.g., to register a local artifact store, we could use the following command:

Orchestrator list
Our CLI features a wide variety of commands that let you manage and use your stack components and flavors. If you would like to learn more, please run
zenml <STACK_COMPONENT> --help
or visit our CLI docs.Registering a Stack
After registering each tool as the respective stack components, you can combine all of them into one stack using thezenml stack register
command:
You can use
zenml stack register --help
to see a list of all possible
arguments to the zenml stack register
command, including a list of which
option to use for which stack component.
Stack list
Activating a Stack
Finally, to start using the stack you just registered, set it as active:Some advanced stack component flavors might require connecting to remote
infrastructure components prior to running code on the stack. This can be done
using
zenml stack up
. See the Managing Stack
States section for more
details.Changing Stacks
If you have multiple stacks configured, you can switch between them using thezenml stack set
command, similar to how you activate a stack.
Accessing the Active Stack in Python
The following code snippet shows how you can retrieve or modify information of your active stack and stack components in Python:Unregistering Stacks
To unregister (delete) a stack and all of its components, runIf you provisioned infrastructure related to the stack, make sure to
deprovision it using
zenml stack down --force
before unregistering the
stack. See the Managing Stack
States section for more
details.