CosmicWorks 2.3.1
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 # if you are setting up this repo 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 --emulator
Generate a subset of data.
cosmicworks --emulator --number-of-products 0 --number-of-employees 50
Generate 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
[!IMPORTANT] 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.