cuidgen.tool 3.0.1

dotnet tool install --global cuidgen.tool --version 3.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local cuidgen.tool --version 3.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=cuidgen.tool&version=3.0.1
nuke :add-package cuidgen.tool --version 3.0.1

cuidgen

GitHub Workflow Status Code Quality

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

📝 cuidgen by default will generate CUIDv2 values

Command Arguments

Argument Description Default Value Accepted Values
-l:<length> Desired length of the CUID value (only applies to CUIDv2) 24 4-32
-g:<version> Generation of the CUID to generate 2 1 or 2
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.0.1 396 11/17/2023
2.0.1 389 8/29/2023
2.0.0 370 8/19/2023