Releases: moleculerjs/moleculer-cli
v0.8.2
v0.8.1
What's Changed
- Support export default syntax in typescript for loaded files by @bbmarkus in #55
- Remove a redundant
requestpackage #54 by @Leestex in #57 - feat: update struct for add others types on create method by @devalexandre in #60
- add raw-helper handlebars helper to init by @Karnith in #64
- update moleculer-repl ^0.7.0 -> ^0.7.2 by @disce-omnes in #66
New Contributors
- @bbmarkus made their first contribution in #55
- @Leestex made their first contribution in #57
- @Karnith made their first contribution in #64
- @disce-omnes made their first contribution in #66
Full Changelog: v0.8.0...v0.8.1
v0.8.0
v0.7.1
v0.7.0
Moleculer updated to latest 0.14
With this version, you can connect to only v0.14 Moleculer nodes.
New call command
There is a call command to connect a Moleculer project & call an action with parameters. The result (stringified JSON) will be printed to the console what you can process with another tool.
The calling parameters should be started with @ prefix. The meta parameters should be started with # prefix.
Example with params
moleculer call math.add --transporter NATS --@a 5 --@b 3Example with params & meta
moleculer call math.add --transporter NATS --@a 5 --@b 3 --#meta-key MyMetaValueExample with post processing the result with jq
moleculer call "\$node.health" | jq '.mem.free'The transporter can be defined via
TRANSPORTERenvironment variable, as well.
Example with transporter env var
TRANSPORTER=nats://localhost:42222 moleculer call math.add --@a 5 --@b 3New emit command
There is a emit command to connect a Moleculer project & emit an event with payload.
The calling parameters should be started with @ prefix. The meta parameters should be started with # prefix.
Example with params
moleculer emit user.created --transporter NATS --@id 3 --@name JohnExample with params & meta
moleculer emit math.add --transporter NATS --@id 3 --@name John --#meta-key MyMetaValueExample with broadcast & groups
moleculer emit math.add --transporter NATS --broadcast --@id 3 --@name John --group accountsExample with multi groups
moleculer emit math.add --transporter NATS --broadcast --@id 3 --@name John --group accounts --group mailThe transporter can be defined via
TRANSPORTERenvironment variable, as well.
Example with transporter env var
TRANSPORTER=nats://localhost:42222 moleculer call math.add --@a 5 --@b 3Changes
- update dependencies
- remove
--cb,--metricsoptions initcommand: add--answers <answer-json-filename>to load answer from file instead of stdin.initcommand: add--install&--no-installoption to enable/disablenpm installafter the files generated.levelparameter for thestart,connect,call,emitcommand to set the logging level.