webCOMAND

Tools CLI

Generate UUIDs

Generate a batch of universally unique identifiers (UUIDs).

php comand.php io_comand_tools uuids [--type=<variant>][--format=<format>][--number=<#>][--namespace=<uuid>][--name=<name>]
  • --type=<variant> where <variant> is:
    • v1 - Version 1 UUID (date-time and MAC address)
    • v3 - Version 3 (MD5 hash and namespace)
    • v4 - Version 4 (random)
    • v5 - Version 5 (SHA-1 hash and namespace)
  • --format=<format> where <format> is:
    • string [default] (ie. b6e6b651-6eba-11e6-aed2-7c8e53f4ce2c)
    • hex (ie. b6e6b6516eba11e6aed27c8e53f4ce2c)
    • binary (WARNING: will produce binary character string, which may corrupt a CLI terminal)
  • --number=<count> where <count> is the number of UUIDs to generate.
  • --namespace=<uuid> where <uuid> is the namespace UUID to use when generating Version 3 or Version 5 UUIDs.
  • --name=<name> where <name> is ?