CLI reference/Environments/env
clavis env freeze
Schedule a write freeze for the linked environment
sh
clavis env freeze [flags]Schedule a window in which secret writes, promotions, syncs and overlay edits are blocked for the linked environment, for example during a release.
Examples
sh
clavis env freeze --reason "Release freeze" --hours 4
clavis env freeze --start 2026-11-27T09:00:00Z --hours 8 --reason "Black Friday"Flags
--hours int- freeze duration in hours Default:
4 --reason string- why the environment is frozen
--start string- start time in RFC3339 (default now)
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command