﻿# Redaction

> Keep secret values out of terminal output

[Dotenv.toml](/docs/dotenv-toml/)

`redacted = true` marks a value for output redaction. Your app receives the real value while matching terminal output shows `[REDACTED]`. Redaction is off by default. `redact` is an alias.

```toml
[env.DATABASE_URL]
required = true
redacted = true

[env.PORT]
type = "port"
storage = "plaintext"
redacted = false
```

Set `redacted = true` at the root to apply redaction by default. A variable table can override that setting. Dotenvx applies the rules when running your app.

Configure storage and redaction independently.

## Related

- [Dotenv.toml Quickstart](/docs/dotenv-toml/quickstart/)
- [Full Dotenv.toml Spec](/docs/dotenv-toml/spec/)
