Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save megclaypool/a703de893c785706718c55e807261f60 to your computer and use it in GitHub Desktop.
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
## 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