2018-12-20 10:51:49 -06:00
|
|
|
# uuidgen
|
|
|
|
|
|
|
|
> Generate unique identifiers (UUIDs).
|
2021-05-14 14:11:08 +02:00
|
|
|
> See also `uuid`.
|
|
|
|
> More information: <https://manned.org/uuidgen>.
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2021-05-14 14:11:08 +02:00
|
|
|
- Create a random UUIDv4:
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`uuidgen {{[-r|--random]}}`
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2021-05-14 14:11:08 +02:00
|
|
|
- Create a UUIDv1 based on the current time:
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`uuidgen {{[-t|--time]}}`
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2021-05-14 14:11:08 +02:00
|
|
|
- Create a UUIDv5 of the name with a specified namespace prefix:
|
2018-12-20 10:51:49 -06:00
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`uuidgen {{[-s|--sha1]}} {{[-n|--namespace]}} {{@dns|@url|@oid|@x500}} {{[-N|--name]}} {{object_name}}`
|