cuidgen.tool 4.0.0

dotnet tool install --global cuidgen.tool --version 4.0.0                
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 4.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=cuidgen.tool&version=4.0.0                
nuke :add-package cuidgen.tool --version 4.0.0                

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

📝 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 net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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
4.0.0 105 6/6/2024
3.0.1 447 11/17/2023
2.0.1 417 8/29/2023
2.0.0 395 8/19/2023