mump2p-cli is the command-line interface for interacting with Optimum network — a high-performance RLNC-enhanced pubsub network.
It supports authenticated publishing, subscribing, rate-limited usage tracking, and JWT session management.
- Publish messages to topics
- Subscribe to real-time message streams
- List active topics
- gRPC support for high-performance streaming
- JWT-based login/logout and token refresh
- Local rate-limiting (publish count, quota, max size)
- Usage statistics reporting
- Persist messages to local storage
- Forward messages to webhook endpoints (POST method) with flexible JSON template formatting
- Health monitoring and system metrics
- Debug mode with detailed timing and proxy information
- Development mode with
--disable-authflag for testing - Multiple output formats (table, JSON, YAML) for automation and scripting
- Interactive tracer dashboard for real-time metrics visualization
Quick Install (Recommended): The install script automatically detects your OS (Linux/macOS), downloads the latest release binary, makes it executable, and verifies the installation.
curl -sSL https://raw.githubusercontent.com/getoptimum/mump2p-cli/main/install.sh | bashManual Installation: Download from releases and make executable.
./mump2p login
./mump2p whoami # Check your sessionDevelopment/Testing Mode:
# Skip authentication for testing (requires --client-id and --service-url)
./mump2p --disable-auth --client-id="my-test-client" publish --topic=test --message="Hello" --service-url="http://34.146.222.111:8080"
./mump2p --disable-auth --client-id="my-test-client" subscribe --topic=test --service-url="http://34.146.222.111:8080"
./mump2p --disable-auth --client-id="my-test-client" list-topics --service-url="http://34.146.222.111:8080"# Subscribe to a topic (WebSocket)
./mump2p subscribe --topic=test-topic
# Subscribe via gRPC stream
./mump2p subscribe --topic=test-topic --grpc
# Publish a message (HTTP)
./mump2p publish --topic=test-topic --message='Hello World'
# Publish via gRPC
./mump2p publish --topic=test-topic --message='Hello World' --grpc
# List your active topics
./mump2p list-topics
# Output formats - JSON/YAML for automation and scripting
./mump2p list-topics --output=json
./mump2p whoami --output=yaml
# Debug mode - detailed timing and proxy information
./mump2p --debug publish --topic=test-topic --message='Hello World'
./mump2p --debug subscribe --topic=test-topic
# Tracer dashboard - real-time metrics visualization
./mump2p tracer dashboard- HTTP/WebSocket (Default): Traditional REST API with WebSocket streaming
- gRPC: High-performance binary protocol with streaming support
- Use
--grpcflag for both publishing and subscribing
- Complete User Guide - Detailed setup, authentication, and usage instructions
Important: Always use the latest version binaries (currently v0.0.1-rc8) from the releases page.
Current Release:
- v0.0.1-rc8 is the latest release
- v0.0.1-rc5 and earlier versions are deprecated
By default, the CLI uses the first proxy in the list below. You can override this using the --service-url flag or by rebuilding with a different SERVICE_URL.
| Proxy Address | Location | URL | Notes |
|---|---|---|---|
34.146.222.111 |
Tokyo | http://34.146.222.111:8080 |
Default |
35.221.118.95 |
Tokyo | http://35.221.118.95:8080 |
|
34.142.205.26 |
Singapore | http://34.142.205.26:8080 |
Note: More geo-locations coming soon!
Example: Using a different proxy:
./mump2p-mac publish --topic=example-topic --message='Hello' --service-url="http://35.221.118.95:8080"
./mump2p-mac subscribe --topic=example-topic --service-url="http://34.142.205.26:8080"Error: HTTP publish failed: dial tcp [::1]:8080: connect: connection refused
Causes:
- Proxy not running
- Wrong port or hostname
- Firewall blocking connection
- Service not listening on specified port
Solutions:
- Start proxy service
- Verify correct hostname and port
- Check
docker psfor running containers - Use correct service URL
- Try a different proxy from the table above
Error: per-hour limit reached (100/hour)
Error: daily quota exceeded
Error: message size exceeds limit
Causes:
- Publishing too frequently
- Message too large for tier
- Daily quota exhausted
- Per-second limit hit
Solutions:
- Wait for rate limit reset
- Use smaller messages
- Check usage:
./mump2p usage - Contact admin for higher limits
- Spread out publish operations
Error: token has expired, please login again
Causes:
- JWT token expired (24 hours)
- Clock skew
- Token corrupted
Solutions:
- Refresh token:
./mump2p refresh - Login again:
./mump2p login - Check system time
Error: required flag(s) "topic" not set
Causes:
- Forgetting required command line arguments
- Typos in flag names
Solutions:
- Use
--helpto see required flags - Include all required arguments
- Check flag spelling and syntax
For development and testing, you can bypass authentication:
# Requires --client-id and --service-url flags
./mump2p --disable-auth --client-id="test-client" \
publish --topic=test --message="Hello" \
--service-url="http://34.146.222.111:8080"Note: This mode is for testing only. No rate limits enforced. See guide for full details.
The --debug flag provides detailed timing and proxy information for troubleshooting:
# Enable debug mode for operations
./mump2p --debug publish --topic=test-topic --message='Hello World'
./mump2p --debug subscribe --topic=test-topic
# Combine with --disable-auth for testing
./mump2p --disable-auth --client-id="test" --debug \
publish --topic=test --message="Hello" \
--service-url="http://34.146.222.111:8080"For comprehensive debug mode usage, performance analysis, and blast testing examples, see the Complete User Guide.
Pro Tips for First-Time Users:
- Always check
docker psanddocker logsfor container status - Use
--helpflag liberally to understand command options - Test authentication first with
whoamibefore trying other operations - Start with simple publish/subscribe before advanced features
- Keep proxy and CLI logs visible during troubleshooting
- Check
usagecommand regularly to monitor limits - For webhook integration and advanced features, see the Complete User Guide
