Cloudflare Docs
Version Management
Edit this page
Report an issue with this page
Log into the Cloudflare dashboard
Set theme to dark (⇧+D)

Enable Version Management

By default, Version Management is not enabled on a zone.

To enable Version Management:

  1. Log in to the Cloudflare dashboard.
  2. Select your account and zone.
  3. Go to Version Management.
  4. 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.

​​ Disable Version Management

To disable Zone Versioning:

  1. Confirm that Version Zero has the correct configurations for your zone:

    1. Use the comparison feature to view the differences between your current Production version and Version Zero.

    2. If there are differences, make changes to Version Zero so it matches your current Production version.

    3. Promote Version Zero to your Production environment.

    4. Confirm that your new Production environment functions as expected.

  2. Send a GET request to the /zones/{zone_id}/environments endpoint.

    curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/environments" \
    --header "X-Auth-Email: <EMAIL>" \
    --header "X-Auth-Key: <API_KEY>"

    In the response, save the following values:

    • The environment ref of every rule
  3. Using the ref of those environments, send a DELETE request to the /zones/{zone_id}/environments/{ref} endpoint for each environment.

    curl -X 'DELETE' "https://api.cloudflare.com/client/v4/zones/{zone_id}/environments/{ref}" \
    --header "X-Auth-Email: <EMAIL>" \
    --header "X-Auth-Key: <API_KEY>"
  4. Then, send a GET request to find all HTTP applications (or versions of your zone).

    curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/http_applications" \
    --header "X-Auth-Email: <EMAIL>" \
    --header "X-Auth-Key: <API_KEY>"

    Save the id of each HTTP application.

  5. Using the id of those HTTP applications, send DELETE requests for every application.

    curl --request DELETE "https://api.cloudflare.com/client/v4/zones/{zone_id}/http_applications/{http_application_id}" \
    --header "X-Auth-Email: <EMAIL>" \
    --header "X-Auth-Key: <API_KEY>"

Once all these steps are completed, Zone Versioning will go back to its original landing page.