> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Ask it with GET https://upstash.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash.com/docs/common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/redis/commands/pub-sub/overview&helpful=true` (or `false`) records whether this page helped. An optional `comment` (URL-encoded, at most 500 characters) says what was missing or wrong. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# 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>
