Created
May 31, 2025 18:31
-
-
Save megclaypool/a703de893c785706718c55e807261f60 to your computer and use it in GitHub Desktop.
This is useful if you need to hand-generate config files in case a field or something didn't get properly created :P
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The command: | |
```bash | |
drush php-eval "echo \Drupal::service('uuid')->generate();" | |
``` | |
Preface with `lando` or `ddev` or whatever as needed for your local dev environment | |
Note that it'll generate the UUID, then it'll append a % as the program exits. Don't use the % in your UUID 😆 | |
## Example: | |
```bash | |
$ ddev drush php-eval "echo \Drupal::service('uuid')->generate();" | |
4a251995-8a6d-4570-b8be-9a8c524f84f1% | |
$ | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment