Hey Guys, I am trying to add a cli command alongsi...
# ask-metaflow
a
Hey Guys, I am trying to add a cli command alongside existing metaflow cli commands (
run, resume, argo-workflows ... etc
). I was taking inspiration from the metaflow test suite to add one. my folder structure looks like this:
Copy code
metaflow_extensions/org
  └── plugins
      ├── mfextinit_deliveryhero.py
      └── remote_resume.py
mfextinit_deliveryhero
contains
Copy code
CLI_DESC = [
    ("remote-resume", ".remote_resume.cli"),
]
Unfortunately this does not work, aka running
python flow.py --help
does not show up the command that i added. Is extending a cli command is different from adding a step decorator? Is there any documentation around this ? any references / examples is also okay 🙏🏽
r
You can take a look at a subset of nflx-extensions that we have published.
AFAIK, it should be
CLIS_DESC
and not
CLI_DESC
- so it could just be a variable name issue
d
METAFLOW_DEBUG_EXT=1 will also give you a ton of info about what is found and loading. Sometimes, if an extension has an issue loading it will be ignored.
a
yeah you are right @rhythmic-controller-77489 , it was a typo 😞 But good to know about metaflow-nflx-extensions, looks pretty helpful for my use-case.