> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# Pub/Sub commands

> Commands for publishing messages and managing channel subscriptions.

<CardGroup cols={2}>
<Card title="PSUBSCRIBE" href="/redis/commands/pub-sub/psubscribe">Subscribe to pattern channels</Card>
<Card title="PUBLISH" href="/redis/commands/pub-sub/publish">Publish message to channel</Card>
<Card title="PUBSUB" href="/redis/commands/pub-sub/pubsub">Inspect pub/sub state</Card>
<Card title="PUNSUBSCRIBE" href="/redis/commands/pub-sub/punsubscribe">Unsubscribe from patterns</Card>
<Card title="SUBSCRIBE" href="/redis/commands/pub-sub/subscribe">Subscribe to channels</Card>
<Card title="UNSUBSCRIBE" href="/redis/commands/pub-sub/unsubscribe">Unsubscribe from channels</Card>
</CardGroup>
