Meet solace-tryme-cli
aka stm: Your Local Playground for Event Simulation with Solace Broker
What is solace-tryme-cli
?
Want to explore Solace PubSub+ messaging without writing a single line of code? The solace-tryme-cli
(aka stm
) tool is your fastest path to hands-on experience with Solace messaging.
Designed for developers and architects, stm
provides an intuitive command-line interface to send, receive, request, and reply to messages using a live Solace broker — making it perfect for quick experiments, debugging, and learning.
What Can You Do with try-me
?
Using a single CLI binary, you can:
Send messages to any topic
Receive messages using topic subscriptions
Request a message and await a reply (request-reply)
Reply to incoming request messages
All without setting up producer/consumer applications or using an SDK.
That’s where stm
shines: it generates event traffic based on the payload input you specify — supporting multiple options like a default payload, command-line value, file content, or interactive terminal input — with zero boilerplate. It sends the message directly to your Solace broker using the topic structure you define.
How It Works
The CLI is driven entirely by command-line arguments and values, making it fully scriptable and automation-friendly.
Here’s how it works:
- Specify your broker connection details
Provide the host, username, and password for your Solace Cloud or local broker.
2.(If not specified, it defaults to a standard local broker configuration.)* - Choose a messaging action
Use one of the supported actions:send
,receive
,request
, orreply
. - Provide topic and message content
Enter the topic to publish or subscribe to, and supply the message payload.
Payloads can be passed as:
- A predefined default
- A command-line value
- File content
- Interactive terminal input
Use Cases in the Real World
Quickly test and validate topic structures without writing code
Simulate producer or consumer behavior during local development
Run lightweight smoke tests in CI/CD pipelines
Deliver interactive demos or training sessions with real messaging
Script message flows for automation or functional testing
Mock upstream/downstream systems in service integration scenarios
Each use case highlights stm
’s simplicity and flexibility — making it a go-to utility for fast, real-world Solace messaging workflows.
Learn More
solace-tryme-cli
is your Swiss Army knife for messaging simulation in Solace ecosystems. Whether you’re testing publish/subscribe flows or request-reply interactions, this CLI helps bring your Solace topics to life — instantly and effortlessly.
The stm
tool supports a rich set of command-line parameters tailored to each operation (send
, receive
, request
, or reply
). You can find comprehensive documentation here:
stm
messaging command-line parameters
Want to see it in action? You can:
- Use the CLI flag
--help-examples
on any command - Or browse through real examples in the docs:
stm
messaging examples
Additional Resources:
- Solace Try-Me CLI for Messaging (GitHub)
- Set Up the Solace Try-Me CLI Tool
- Publish-Subscribe / Fan-Out Pattern Tutorial
- Request-Reply Pattern Tutorial
Have you tried stm
yet? What’s your experience been like? Any specific feature or use cases you’d like to see? Let’s discuss!