# Channels append Use the `ably channels append` command to append data to a message on an Ably Pub/Sub channel. ## Synopsis ### Shell ``` ably channels append [options] ``` ## Arguments ### `channel-name` **(Required)** The name of the channel containing the message. ### `message-serial` **(Required)** The serial of the message to append data to. ### `message` **(Required)** The data to append. This can be plain text or JSON. ## Options ### `--description` A description for the appended data. ### `--encoding | -e` The encoding of the message, such as `json/utf-8`. ### `--name | -n` The event name for the appended message. ### `--client-id` A client ID to use when appending the message. ### `--json` Output results as compact JSON. Mutually exclusive with `--pretty-json`. ### `--pretty-json` Output results in formatted JSON. Mutually exclusive with `--json`. ### `--verbose | -v` Enable verbose logging. Can be combined with `--json` or `--pretty-json`. ## Examples Append data to a message: ### Shell ``` ably channels append my-channel "msg-serial" '{"extra": "data"}' ``` Append with an event name: ### Shell ``` ably channels append my-channel "msg-serial" "additional info" --name update ``` Append with a description: ### Shell ``` ably channels append my-channel "msg-serial" '{"note": "correction"}' --description "Added correction" ``` Append plain text data to a message: ### Shell ``` ably channels append my-channel "msg-serial" "Appended plain text" ``` Append data and output the result in JSON format: ### Shell ``` ably channels append my-channel "msg-serial" '{"data":"appended"}' --json ``` Append data and output the result in formatted JSON: ### Shell ``` ably channels append my-channel "msg-serial" '{"data":"appended"}' --pretty-json ``` ## See also * [Channels](https://ably.com/docs/cli/channels.md) — Explore all `ably channels` commands. * [CLI reference](https://ably.com/docs/cli.md) — Full list of available commands. ## Related Topics - [subscribe](https://ably.com/docs/cli/channels/subscribe.md): Subscribe to messages on one or more Ably Pub/Sub channels using the CLI. - [publish](https://ably.com/docs/cli/channels/publish.md): Publish a message to an Ably Pub/Sub channel using the CLI. - [batch-publish](https://ably.com/docs/cli/channels/batch-publish.md): Publish a message to multiple Ably Pub/Sub channels at once using the CLI. - [history](https://ably.com/docs/cli/channels/history.md): Retrieve message history for an Ably Pub/Sub channel using the CLI. - [update](https://ably.com/docs/cli/channels/update.md): Update a message on an Ably Pub/Sub channel using the CLI. - [delete](https://ably.com/docs/cli/channels/delete.md): Delete a message on an Ably Pub/Sub channel using the CLI. - [list](https://ably.com/docs/cli/channels/list.md): List active channels using the Ably CLI. - [inspect](https://ably.com/docs/cli/channels/inspect.md): Open the Ably dashboard to inspect a specific channel using the CLI. ## Documentation Index To discover additional Ably documentation: 1. Fetch [llms.txt](https://ably.com/llms.txt) for the canonical list of available pages. 2. Identify relevant URLs from that index. 3. Fetch target pages as needed. Avoid using assumed or outdated documentation paths.