dotnet-guid 1.0.3

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

dotnet-guid

.NET Tool for creating GUIDs/UUIDs.

The tool creates a single or multiple random GUIDs/UUIDs, which can be formatted in multiple ways.

Installation

Download the latest version of .NET. Then install the dotnet-guid .NET Tool, using the command-line:

dotnet tool install -g dotnet-guid

Usage

USAGE:
    dotnet guid [count] [OPTIONS]

EXAMPLES:
    dotnet guid 5 -f N
    dotnet guid -f X -u
    dotnet guid -f B64
    dotnet guid -e

ARGUMENTS:
    [count]    Number of GUIDs/UUIDs to generate. Defaults to 1

OPTIONS:
    -h, --help         Prints help information
    -e, --empty        Uses empty, zero-value GUIDs/UUIDs only
    -l, --lowercase    Sets GUIDs/UUIDs to use lower-cased letters, where applicable
    -u, --uppercase    Sets GUIDs/UUIDs to use upper-cased letters, where applicable
    -f, --format       Sets the formatting of generated GUIDs/UUIDs
                       - B64: Base64 string (ABCDEfghij12345abcdefg)
                       - B64F: Base64 full string (ABCDEfghij12345abcdefg==)
                       - N: 32 digits (00000000000000000000000000000000)
                       - H: 32 digits separated by hyphens (00000000-0000-0000-0000-000000000000)
                       - HB: 32 digits separated by hyphens, enclosed in braces ({00000000-0000-0000-0000-000000000000})
                       - HP: 32 digits separated by hyphens, enclosed in parentheses
                       ((00000000-0000-0000-0000-000000000000))
                       - X: Four hexadecimal values enclosed in braces
                       ({0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}})

Examples

To get a single GUID/UUID, simply type:

dotnet guid

To get 3 random GUIDs/UUIDs, with letters in upper-case, formatted with brackets:

dotnet guid 3 -f H -u
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 is compatible.  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
1.0.3 299 4/10/2024
1.0.2 799 1/9/2024
1.0.0 2,580 11/10/2022
0.5.2 10,016 4/29/2020
0.5.1 2,403 12/29/2018
0.5.0 687 12/29/2018