create-guid
1.0.10
dotnet tool install --global create-guid --version 1.0.10
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local create-guid --version 1.0.10
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=create-guid&version=1.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package create-guid --version 1.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
create-guid
A command-line utility to help developers create GUIDs and UUIDs for their projects in various output formats, copy to clipboard, and save to output file.
Run create-guid in your favorite console window.
Features
- Generate one or more GUIDs from the command line
- Supports:
- Standard GUIDs (UUIDv4)
- UUIDv7 (time-ordered, future-proof)
- Empty GUIDs for testing or placeholder usage
- Output in plain text (one per line)
Installation
Install globally using the .NET CLI:
dotnet tool install --global D20Tek.Tools.CreateGuid
To update the tool:
dotnet tool update --global D20Tek.Tools.CreateGuid
Usage
USAGE:
create-guid [OPTIONS] [COMMAND]
OPTIONS:
DEFAULT
-h, --help Prints help information
-v, --verbosity <VERBOSITY-LEVEL> Normal The verbosity level for this operation: q(uiet), m(inimal),
n(ormal), d(etailed), and diag(nostic)
-c, --count <COUNT> 1 The number of GUIDs to generate (defaults to 1)
-f, --format <GUID-FORMAT> Default Defines how the GUIDs are formatted in string form (Default, Number,
Braces, Parens, Hex)
-s, --uuid-v7 Generates a UUID v7 compliant GUID for sortable unique identifiers
-e, --empty Defines if the GUIDs should be empty (using zero-values)
-u, --upper Defines if the generated GUIDs should be upper-cased (defaults to
lower-cased)
-p, --clipboard-copy Defines whether the output of this command should be copied to the
system clipboard
-o, --output Filename for output file used to save generated guids
COMMANDS:
generate Default command that generates GUIDs in the appropriate format
Examples
Generate a single standard GUID:
create-guid
Generate 5 UUIDv7 GUIDs:
create-guid --count 5 --uuidv7
Generate 3 GUIDs and copy them to the clipboard:
create-guid -c 3 --clipboard-copy
Feedback
If you use this tool and have any feedback, bugs, or suggestions, please file them in the Issues section of this repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.
Updated to .NET 9 and added UUID 7 guid generation option.