---
title: "speedctl DLP CLI reference | Speedscale Docs"
description: "Pull and push Speedscale Cloud DLP rules with speedctl. For local redaction testing with proxymock, see the proxymock DLP guide."
canonical: "https://docs.speedscale.com/guides/dlp/cli-reference/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/dlp/cli-reference/index.md) | [Canonical page](https://docs.speedscale.com/guides/dlp/cli-reference/)

# speedctl DLP CLI reference

These commands manage platform DLP rules with speedctl. To test or apply redaction rules against local recordings, see [proxymock local DLP rules](https://docs.speedscale.com/proxymock/guides/local-rules/). For help choosing a CLI, see [Command-line tools](https://docs.speedscale.com/getting-started/command-line-tools/).

Administrator Access Required

Only administrators can modify DLP rules. You must have the appropriate permissions to pull and push DLP rules.

This section provides CLI reference documentation for managing DLP rules using `speedctl`. Use these commands to pull DLP rules to your local machine for editing and push them back to Speedscale.

<a id="pulling-dlp-rules"></a>

## Pulling DLP Rules

Use `speedctl pull dlp` to download a DLP rule from Speedscale to your local machine.

```bash
speedctl pull dlp <rule-id>
```

By default, the rule is downloaded to `~/.speedscale/data/dlp/<rule-id>.json`.

<a id="example"></a>

### Example

```bash
speedctl pull dlp prod-payment-data-redaction
```

After pulling, you can edit the rule file locally. The file contains the DLP configuration including transform chains, filters, and extractors.

<a id="pushing-dlp-rules"></a>

## Pushing DLP Rules

Use `speedctl push dlp` to upload a modified DLP rule from your local machine back to Speedscale.

```bash
speedctl push dlp <rule-id>
```

<a id="example-1"></a>

### Example

```bash
speedctl push dlp prod-payment-data-redaction
```

After pushing, the updated rule is available in Speedscale. Forwarders that reference the rule will automatically apply the changes; no manual refresh or redeployment is required.

<a id="typical-workflow"></a>

## Typical Workflow

1.  **Pull** the rule from Speedscale: `speedctl pull dlp my-dlp-rule`
2.  **Edit** the rule file locally (e.g., `~/.speedscale/data/dlp/my-dlp-rule.json`)
3.  **Push** the updated rule back: `speedctl push dlp my-dlp-rule`
4.  **Apply** the rule to forwarders via the UI or your deployment configuration

<a id="next-steps"></a>

## Next Steps

*   [Creating DLP Rules](https://docs.speedscale.com/guides/dlp/creating-rules/) - Create and configure DLP rules

<a id="related-documentation"></a>

## Related Documentation

*   [Creating DLP Rules](https://docs.speedscale.com/guides/dlp/creating-rules/) - Rule creation guide
*   [Applying Rules to Production](https://docs.speedscale.com/guides/dlp/applying-rules/) - Production deployment
