Enable
By default, Version Management is not enabled on a zone.
To enable Version Management ↗:
- Log in to the Cloudflare dashboard ↗.
- Select your account and zone.
- Go to Version Management.
- Select Enable versioning.
Once you enable Version Management, Cloudflare will automatically create:
- Version Zero, think about this as the configuration of your current zone. Once default environments are created, Version Zero is automatically deployed to them, guaranteeing no disruption in your live traffic. This Version is also permanently editable. In case you decide to disable Zone Versioning, Version Zero will become your zone again.
- Global Configuration, you can find all the configurations here that are not supported by Version Management.
On the Environments page, you can create default environments for Production, Staging, and Development.
To disable Zone Versioning:
-
Confirm that Version Zero has the correct configurations for your zone:
-
Use the comparison feature to view the differences between your current Production version and Version Zero.
-
If there are differences, make changes to Version Zero so it matches your current Production version.
-
Promote Version Zero to your Production environment.
-
Confirm that your new Production environment functions as expected.
-
-
Send a
GET
request to the/zones/{zone_id}/environments
endpoint.In the response, save the following values:
- The environment
ref
of every rule
- The environment
-
Using the
ref
of those environments, send aDELETE
request to the/zones/{zone_id}/environments/{ref}
endpoint for each environment. -
Then, send a
GET
request to find all HTTP applications (or versions of your zone).Save the
id
of each HTTP application. -
Using the
id
of those HTTP applications, sendDELETE
requests for every application.
Once all these steps are completed, Zone Versioning will go back to its original landing page.