---
title: "Update UUID in a Drupal Configuration"
url: "https://michalak.world/posts/update-uuid-in-a-drupal-configuration/"
description: "Update UUID in a Drupal Configuration"
summary: "Update UUID in a Drupal Configuration."
date: 2023-08-03
lastmod: 2026-08-19
tags: ["Drupal","Drupal 10","Drupal 9","Drupal 8","Drush","Configuration"]
section: "posts"
author: "Michael Michalak"
site: "https://michalak.world/"
---

# Update UUID in a Drupal Configuration

Update UUID in a Drupal Configuration

Update a UUID: 
```
drush config-set "config.name" uuid "a2afbb3b-d34f-42fd-bf0c-593a103aa6f4"
```
Also how to generate an new UUID:
```
drush php-eval "echo \Drupal::service('uuid')->generate();"
```
Notes:
- Remember to back up your database first!
- Check your config: 
  - `drush config-get "config.name" uuid`

