Skip to main content
dyn export and dyn apply are the config-as-code pair. Together they let you treat an environment’s configuration as a file you can review, diff, version in git, and apply repeatably.
What you need: The CLI installed and authenticated, with an environment selected. See Getting started. Both commands act on the active environment — confirm it with dyn status first.

Export an environment

Export captures providers, settings, webhooks, chains, custom fields, gates, and more — everything that defines how the environment behaves.

Apply a file

dyn apply diffs a file against the current environment and brings the environment into line with the file.
Always preview with --dry-run first. The dry-run prints exactly what would be added, updated, or deleted without touching the environment.

Safety gates

On the real (non-dry-run) path, dyn apply refuses risky changes unless you opt in with an explicit flag. This prevents a stale or hostile YAML file from silently weakening auth or deleting resources. Other useful flags: --concurrency <n> to parallelize mutations, and --yes to skip the final confirmation prompt (required in non-interactive contexts).

Common patterns

Clone live into sandbox. Export production, then apply it to a safe playground:
Review config changes in git. Track envs/sandbox.yaml in your repo, edit it in a pull request, and apply after review:
Drift detection in CI. Run a dry-run on every pull request to surface configuration drift between your file and the live environment:
Last modified on June 1, 2026