Hi :wave: , Is there a CLI command for reflecting ...
# documentation
p
Hi đź‘‹ , Is there a CLI command for reflecting back the names of all the plugins that are part of a project? I.e. something like:
Copy code
meltano config list
I've tried looking under: https://docs.meltano.com/reference/command-line-interface/#config but that only provides options to list config for a single plugin. I did find:
Copy code
meltano job list
but this lists all jobs not all plugins. I also found:
Copy code
meltano config meltano list
but this lists meltano configuration excluding plugins. thanks in advance 🙏
âž• 1
đź‘‹ 1
v
Technically https://docs.meltano.com/reference/command-line-interface/#compile works But you have to parse the json still
đź‘€ 1
e
https://github.com/meltano/meltano/issues/3252 sounds like it. Give it a 👍 if it does exactly what you need, or feel free to comment there if you have slightly different requirements.
v
btw I was just messing with https://jsoncrack.com/editor today, if you swap to YAML in that tool and paste your meltano.yml in there it makes a nice visualization that shows your extractors/loaders quickly
👍 1
p
Thanks both for the fast response 🎉 - this seems to work for my use case:
Copy code
meltano --no-environment compile && \
cat .meltano/manifests/meltano-manifest.json | jq -r '.plugins[]?[]? | .name'
…but its quite a bit slower than expected (10 seconds). I imagine
meltano compile
is doing a lot of additional work that isn’t needed for my particular use case. I’m not sure if
meltano debug
covers it either as I’m looking something which produces output in a machine readable format. For additional context we’ve got our config split across multiple files. Ideally I’d have something that understands the
include_paths
and returns the “raw” config across all files. And is less of a hack than this yq approach:
Copy code
yq -r --output-format=json '.plugins?[]?[]?.name' meltano.yml meltano**/*.meltano.yml
(Works on Mac OSX with zsh)
👍 2