The CLI provides commands to generate IDs using all supported generators. Each generator has specific options for customization.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jkomyno/uniku/llms.txt
Use this file to discover all available pages before exploring further.
Basic Usage
Generate a single ID using shorthand syntax:generate command:
UUID Generation
Generate UUIDs (version 4 or 7):UUID Options
UUID version to generate. Alias:
-v4— Random UUID (RFC 4122)7— Time-ordered UUID with millisecond precision (RFC 9562)
Output in lowercase instead of uppercase. Alias:
-lNumber of UUIDs to generate. Alias:
-nUUID v7 embeds a timestamp and is sortable, making it ideal for database primary keys and distributed systems.
ULID Generation
Generate Universally Unique Lexicographically Sortable Identifiers:ULID Options
Generate monotonically increasing ULIDs with the same timestampGuarantees that each successive ULID is lexicographically greater, even if generated within the same millisecond.
Unix timestamp in milliseconds or
"now"Output in lowercase. Alias:
-lNanoid Generation
Generate compact, URL-safe unique identifiers:Nanoid Options
Length of the generated ID (1-256). Alias:
-sCustom alphabet or preset name. Alias:
-aPresets:hex— Hexadecimal (0-9, a-f)numeric— Numbers only (0-9)alpha— Letters only (a-z, A-Z)
CUID2 Generation
Generate collision-resistant, secure identifiers:CUID2 Options
Length of the generated ID (2-32). Alias:
-lCUID2 is designed to be collision-resistant even without coordination. It’s ideal for distributed systems where UUIDs feel too long.
KSUID Generation
Generate K-Sortable Unique Identifiers:KSUID Options
Unix timestamp in seconds or
"now"JSON Output
All generation commands support--json for structured output:
Comparison Table
| Generator | Default Length | Time-Ordered | Monotonic | URL-Safe |
|---|---|---|---|---|
| UUID v4 | 36 chars | No | No | No |
| UUID v7 | 36 chars | Yes (ms) | Yes | No |
| ULID | 26 chars | Yes (ms) | Optional | Yes |
| Nanoid | 21 chars | No | No | Yes |
| CUID2 | 24 chars | No | No | Yes |
| KSUID | 27 chars | Yes (sec) | Yes | Yes |
Next Steps
Validate IDs
Validate generated IDs with auto-detection
Inspect IDs
Extract timestamps from time-ordered IDs
