/uuid-generator

Binary to generate uuids in different formats

Primary LanguageRust

UUID generator

Usage

Generate uuids.

Supports v1, v4 and v7 uuids with hex, 'normal' and urn formats.

> uuid
2b4a3c2c-a8a4-4c87-bbae-cc6b15a962a4
> uuid --format hex
f21318cab06c43468e999cb88037e1f5

Options:
-n, --amount [AMOUNT]           The amount of uuids to generate, default: 10
-f, --format [FORMAT]           The format to output the uuids, default: normal, possible values: [normal, hex, urn]
-v, --version [VERSION]         The with uuid version to use, default: v4, possible values: [v1, v4, v7]

Examples:
> uuid -n 1
> uuid -v 4 -n 100 -f hex
> uuid --version 4 --amount 100 --format normal
> uuid --version 7 --amount 56 --format urn

Installation

cargo install --git https://github.com/thomas9911/uuid-generator --branch main