A simple CLI tool to publish events to a Mercure Hub, and optionally subscribe to receive them.
Download the binaries corresponding to your OS here.
Provide a Yaml file containing the different Mercure configurations per environment you wish to interact with. The project comes with a sample config file:
{
"environments": [
{
"name": "localhost",
"url": "https://localhost/.well-known",
"jwtSecretKey": "!ChangeMe!"
}
]
}
Option | Description | Type | Default | Required? |
---|---|---|---|---|
-h |
Display usage. | No | ||
-c |
Load the Mercure Hub configuration per environment. | path |
. |
No |
-n |
Number of events to publish to the Mercure Hub. | int |
5 |
No |
-t |
Topic URI used by Mercure to manage pub/sub. | string |
sse://pxc.dev/123456/test_mercure_events |
No |
-p |
Only publish events, no client subscription. | bool |
false |
No |
- publish binaries to allow installation with
brew
- encrypt secrets
- generate different types of mock payload
-
sub
should be randomly generated, to ensure no collisions