Create serverless plugin to expose command useable in shell pipeline?

Is there a good way to control the “info” output from the serverless framework to create serverless plugins that expose commands which are useable in a shell pipeline? I need to write a plug-in that has access to the serverless configuration and outputs some json for use in another process.

This plugin saves the cloudformation output as JSON. Might be useful to look at…

This writes the output to a file (or allows chaining another js function that is executed as part of the same serverless process) …

For my use I really don’t want to generate a temporary file… and I need the output derived from the serverless config to chain as stdin of a process written in another language …