Hey everyone, I have a question regarding cli comm...
# ask-metaflow
c
Hey everyone, I have a question regarding cli command in metaflow. Is there a way to customize the cli command after the python file, like e.g.
myflow.py
. I want to create something like
python myflow.py data check
``python myflow.py data plan` next to the existing ones
python myflow.py run
``python myflow.py show` , any idea if it's possible to do this? I see it seems possible to use the metaflow-extension-template? And I also wonder if there's some other way to achieve the goal. like the customizing stepdecorators using a generator function. Thanks in advance!
βœ… 1
d
Custom step decorators will let you add parameters which can change the command line but do not have any other link to command line processing. The extension mechanism is probably your best bet. It’s not too complicated for something this straightforward. If you find another way, would be happy to learn though :).
c
Hey @dry-beach-38304, thanks for the reply, I will give it a shot.πŸ‘ And I will keep an eye open to see if there's some other new ways to do this.
d
Sure. Let us know if you need help with it.
πŸ‘ 1