﻿# Strictness

> Stop your command when configuration breaks your rules

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

Use `strict = true` to stop your command when a configured value-validation rule fails. The default is `strict = false`, which reports warnings.

```toml
strict = true

[env.DATABASE_URL]
type = "url"
required = true
```

Set strictness at the root, in a file table, or for an individual variable. Set required and storage rules separately. CLI `--strict` also stops on loading errors.

## Related

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