veramo
veramo copied to clipboard
[proposal] @veramo/cli should be fully scriptable
We make ample use of inquirer in @veramo/cli which allows the user to interactively describe how to perform some complex actions. However, this means that the command line agent can't really be used in scripts.
For such scripting to be possible it is a requirement that any parameter now gathered using inquirer is also available as a CLI argument.
There is an implicit other requirement to eliminate all console.log
statements that might otherwise pollute the output.
As a starting point @veramo/cli has the execute
command which can call any Veramo plugin method and provide the arguments either from a file or from a JSON string. It would be better if these arguments could be piped from stdin as well.
Then maybe an output option to save to file.