A simple command-line UUID generator supporting multiple UUID versions.
go install github.com/weppos/xuuid@latestor build from source:
git clone https://github.com/weppos/xuuid.git
cd xuuid
make buildThe binary will be created in the current directory as xuuid.
xuuid [flags]Generate a single UUID v7 (default):
xuuid
# 018f1234-5678-7890-abcd-ef1234567890Generate a UUID v4:
xuuid --v4
# 550e8400-e29b-41d4-a716-446655440000Generate multiple UUIDs:
xuuid --count 2
# 018f1234-5678-7890-abcd-ef1234567890
# 018f1235-5678-7890-abcd-ef1234567891Generate a UUID v7 in hex (no dashes):
xuuid --hex
# 018f123456787890abcdef1234567890Generate a UUID v7 as a URN:
xuuid --urn
# urn:uuid:018f1234-5678-7890-abcd-ef1234567890Show all available flags:
xuuid --help