CosmicWorks 2.3.1
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global CosmicWorks --version 2.3.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local CosmicWorks --version 2.3.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CosmicWorks&version=2.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package CosmicWorks --version 2.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CosmicWorks command-line tool for .NET
CosmicWorks is an open source set of tools and libraries to generate data quickly for your proof of concept or sample applications.
NuGet link
https://www.nuget.org/packages/cosmicworks
Install
dotnet tool install --global cosmicworks
Examples
Generate all data in the Azure Cosmos DB emulator.
cosmicworks --emulatorGenerate a subset of data.
cosmicworks --emulator --number-of-products 0 --number-of-employees 50Generate all data in a live Azure Cosmos DB for NoSQL account using a connection string.
cosmicworks --connection-string "<API_FOR_NOSQL_CONNECTION_STRING>"Generate all data in a live Azure Cosmos DB for NoSQL account using Microsoft Entra & role-based access control.
cosmicworks --endpoint "<API_FOR_NOSQL_ENDPOINT>" --role-based-access-control
If you enable role-based access control, the database and container resources are NOT created on your behalf.
Arguments
| Description | Remarks | |
|---|---|---|
--connection-string (-c) |
Connection string for an Azure Cosmos DB for NoSQL account. | You may need to escape connection string characters or enclose the value in quotes within specific operation system shells. If not specified, the CLI will prompt you for a connection string value. |
--emulator (-e) |
Use emulators connection string | This argument has a higher precedent than --connection-string. |
--number-of-products |
Number of product items to generate | This argument defaults to 200. If set to 0, the corresponding container will be skipped. You must set at least this argument or --number-of-employees to a positive integer value. |
--number-of-employees |
Number of product items to generate | This argument defaults to 1000. If set to 0, the corresponding container will be skipped. You must set at least this argument or --number-of-products to a positive integer value. |
--disable-hierarchical-partition-keys |
Disables the creation of hierarchical partition keys | This argument is useful for working in environments, like the emulator, where hierarchical partition keys are not supported. |
--role-based-access-control (--rbac -r) |
Enables role-based access control using DefaultAzureCredential. |
This argument must be used with the --endpoint argument. |
--endpoint |
Endpoint for an Azure Cosmos DB for NoSQL account. | This argument must be used with the --role-based-access-control argument. |
--help (-h) |
Renders help information and examples. | |
--version (-v) |
Renders version information. |
Related
| Product | Versions 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. 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-preview.1 | 193 | 5/29/2025 |
| 2.3.1 | 1,414 | 11/21/2024 |
| 2.2.0 | 348 | 10/24/2024 |
| 2.1.0 | 1,453 | 4/9/2024 |
| 2.0.3 | 2,354 | 8/30/2023 |