Environments
Environments in Kontent.ai let you create snapshots of your content. These can be snapshots of your production environment or other environments.In non-production environments, you can safely change the content model and the content itself without affecting what your customers see in production.
Create an environment
Creating an environment means creating a copy of a selected environment, such as Production. You can use the copy for development and testing purposes. You can create as many environments as your subscription plan allows. If you need to make changes to your content models, we recommend using Kontent.ai’s data-ops tool
What happens when you create an environment?
By default, cloning a new environment means creating an exact copy of the source environment, including:- Content & assets – assets, content items along with their versions, comments and suggestions, and tasks)
- Content model – content types, asset type, content type snippets, and taxonomies
- Environment settings – collections, languages, preview URLs, roles, spaces, webhooks, and workflows
- Specific Innovation Lab features, such as the smarter search experience and suggest linked items with AI, will be deactivated in the cloned environment.
Get your environment ID
You use the environment ID to tell Delivery API where to look for content. An environment ID looks like this:8d20758c-d74c-4f59-ae04-ee928c0816b.
- In Kontent.ai, select a project and its environment using the two drop-downs at the top left.
- In
Environment settings > General, click
to copy the Environment ID to your clipboard.
Select an environment in the UI
You can switch among the current project’s environments using the second drop-down at the top.
Clone an existing environment
You can clone an existing environment for backup or development and testing purposes. To clone an existing environment in Kontent.ai:- Go to
Project settings > Environments
- Click
of the environment you want to clone.
- Select Clone.
Manage changes between environments
Whether you‘re testing content model changes, migrating content, or backing up your environments, there are tools to help you manage them. The data-ops toolMark a non-production environment as production
To mark a non-production environment as production, go toConsiderations
When working with environments, here are some key points to consider:- Once items are migrated to the target environment, reverting changes is not straightforward. Plan carefully, as there’s no built-in rollback mechanism.
- Avoid syncing or migrating large changes all at once. Smaller, incremental updates are safer and easier to troubleshoot.
- Use snapshots and visual diffs to preview changes before any major updates.
- Disable webhooks during migration to avoid triggering unintended actions.
- The restore process re-imports entities rather than reverting the environment to a previous state.
- Backing up environments via data-ops is meant for occasional use rather than ongoing, automated backups.
- Restoring from a backup is a manual, complex process typically requiring hands-on involvement and planning.