NATS
High-performance message streaming commands. Manage subjects, streams, consumers, and publish-subscribe messaging.
52 commands
Browse by Topic
Install NATS server (macOS)
Install NATS server using Homebrew on macOS
Install NATS CLI
Install the NATS CLI tool using Homebrew
Start NATS server
Start a local NATS server with default settings
Add context
Create named connection configuration.
List contexts
Display all saved contexts.
Select context
Switch to different context.
Server info
Display server version, uptime, connections, cluster info.
Account info
View account limits and JetStream details.
Check RTT
Check round-trip time to server.
Publish message
Publish a message to a subject.
Publish multiple
Publish multiple messages with templating.
Subscribe to subject
Subscribe using wildcard pattern.
Queue group subscribe
Join queue group for load-balanced delivery.
Request-reply
Send request and wait for response.
Reply service
Listen for requests and send responses.
Benchmark pub/sub
Benchmark with 10 publishers and subscribers.
Create stream
Create persistent stream with file storage.
Create stream (interactive)
Create stream with interactive prompts.
List streams
List all streams.
Stream info
View stream configuration and state.
View messages
Browse messages in stream.
Purge stream
Remove all messages without deleting stream.
Delete stream
Delete stream (force, no confirmation).
Stream report
Generate report of all streams.
Create pull consumer
Create pull-based consumer with retry limits.
Create push consumer
Create push consumer that sends to target subject.
List consumers
List consumers for a stream.
Consumer info
View consumer configuration and state.
Get next message
Retrieve next available message from pull consumer.
Pause consumer
Temporarily suspend consumer (NATS 2.11+).
Resume consumer
Resume paused consumer.
Create KV bucket
Create KV bucket with 3 value revisions.
List buckets
List all KV buckets.
Put value
Store or update key value.
Get value
Retrieve value for key.
Create (exclusive)
Create key only if not exists (semaphore pattern).
Update (CAS)
Update only if revision matches (compare-and-swap).
Watch bucket
Watch for real-time changes to all keys.
Key history
View full history of key values.
Delete key
Remove key from bucket.
Create object store
Create object store bucket.
Upload file
Upload file to object store.
Download file
Download file from object store.
List objects
List objects in bucket.
Delete object
Delete file from bucket.
Ping servers
Display RTT to all cluster servers.
List servers
List all servers with details.
Connection report
Report of all connections in cluster.
JetStream report
JetStream usage across cluster.
Check stream health
Monitor stream health status.
System events
Monitor connects, disconnects, auth errors.
Latency measurement
Measure round-trip latency with HDR percentiles.
Discussion
Loading comments...