The Flowcore CLI allows you to stream data from Flowcore. You can extend the CLI and add your own commands to fit your needs.
Add a new plugin
To create a new plugin you can use the flowcore cli
then you can link the plugin to the flowcore cli to test it
rename the topic to the topic you want to create a command for, for example stream
.
if you run flowcore --help
you should see your new command in the list.
Stream
To create a new stream output you need to add the @flowcore/cli-plugin-core
package to your plugin.
then you can create a new command under the src/commands/stream
directory.
then you can run the command
and you should see the output logged to the console with the 😎 emoji in each event, and a done message at the end.