Home

Awesome

cuidgen

GitHub Workflow Status Sonar Quality Gate

Nuget Downloads GitHub

A command-line utility based on cuid.net for generating collision-resistant ids. You can read more about CUIDs from the official project website.


Installation

.NET Tool

dotnet tool install --global cuidgen.tool

If you prefer, cuidgen is also available as a portable binary for Windows, Mac and Linux for download from the Releases page.

Example Usage

cuidgen is designed to be as simple as possible and is perfect for usage in scripting.

# generate a CUIDv2 value with a length of 10
$ cuidgen -l:10
fd59iobs0p

:memo: cuidgen by default will generate CUIDv2 values

Command Arguments

ArgumentDescriptionDefault ValueAccepted Values
-l:<length>Desired length of the CUID value (only applies to CUIDv2)244-32
-g:<version>Generation of the CUID to generate21 or 2