> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file 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="/docs/redis/commands/pub-sub/psubscribe">Subscribe to pattern channels</Card>
  <Card title="PUBLISH" href="/docs/redis/commands/pub-sub/publish">Publish message to channel</Card>
  <Card title="PUBSUB" href="/docs/redis/commands/pub-sub/pubsub">Inspect pub/sub state</Card>
  <Card title="PUNSUBSCRIBE" href="/docs/redis/commands/pub-sub/punsubscribe">Unsubscribe from patterns</Card>
  <Card title="SUBSCRIBE" href="/docs/redis/commands/pub-sub/subscribe">Subscribe to channels</Card>
  <Card title="UNSUBSCRIBE" href="/docs/redis/commands/pub-sub/unsubscribe">Unsubscribe from channels</Card>
</CardGroup>


## Related topics

- [Overview](/docs/redis/sdks/py/commands/overview.md)
- [PUBSUB](/docs/redis/commands/pub-sub/pubsub.md)
- [SUBSCRIBE](/docs/redis/commands/pub-sub/subscribe.md)
- [PUNSUBSCRIBE](/docs/redis/commands/pub-sub/punsubscribe.md)
