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

> [card] [PSUBSCRIBE](https://upstash.com/docs/redis/commands/pub-sub/psubscribe)
>
> Subscribe to pattern channels

> [card] [PUBLISH](https://upstash.com/docs/redis/commands/pub-sub/publish)
>
> Publish message to channel

> [card] [PUBSUB](https://upstash.com/docs/redis/commands/pub-sub/pubsub)
>
> Inspect pub/sub state

> [card] [PUNSUBSCRIBE](https://upstash.com/docs/redis/commands/pub-sub/punsubscribe)
>
> Unsubscribe from patterns

> [card] [SUBSCRIBE](https://upstash.com/docs/redis/commands/pub-sub/subscribe)
>
> Subscribe to channels

> [card] [UNSUBSCRIBE](https://upstash.com/docs/redis/commands/pub-sub/unsubscribe)
>
> Unsubscribe from channels


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.