---
title: Command-line operations
description: Command-line tools for managing payload logging encryption keys.
image: https://developers.cloudflare.com/core-services-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/waf/llms.txt  
> Use this file to discover all available pages before exploring further.

[Skip to content](#%5Ftop) 

# Command-line operations

The Cloudflare [matched-data-cli ↗](https://github.com/cloudflare/matched-data-cli) command-line tool supports several tasks related to payload logging.

[Download ↗](https://github.com/cloudflare/matched-data-cli/releases) the `matched-data-cli` tool for your platform from the **Releases** page on GitHub. Alternatively, build the tool from source by following the instructions in the GitHub repository.

Use the tool to:

* [ Generate a key pair ](https://developers.cloudflare.com/waf/managed-rules/payload-logging/command-line/generate-key-pair/)
* [ Decrypt the payload content ](https://developers.cloudflare.com/waf/managed-rules/payload-logging/command-line/decrypt-payload/)

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/waf/","name":"WAF"}},{"@type":"ListItem","position":3,"item":{"@id":"/waf/managed-rules/","name":"Managed Rules"}},{"@type":"ListItem","position":4,"item":{"@id":"/waf/managed-rules/payload-logging/","name":"Log the payload of matched rules"}},{"@type":"ListItem","position":5,"item":{"@id":"/waf/managed-rules/payload-logging/command-line/","name":"Command-line operations"}}]}
```
