The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Oscar Hinton 5f7e2b8a81
[PM-21075] Initial database seeder (#5703)
7 months ago
..
DbSeederUtility.csproj [PM-21075] Initial database seeder (#5703) 7 months ago
GlobalSettingsFactory.cs [PM-21075] Initial database seeder (#5703) 7 months ago
Program.cs [PM-21075] Initial database seeder (#5703) 7 months ago
README.md [PM-21075] Initial database seeder (#5703) 7 months ago
ServiceCollectionExtension.cs [PM-21075] Initial database seeder (#5703) 7 months ago

README.md

Bitwarden Database Seeder Utility

A command-line utility for generating and managing test data for Bitwarden databases.

Overview

DbSeederUtility is an executable wrapper around the Seeder class library that provides a convenient command-line interface for executing seed-recipes in your local environment.

Installation

The utility can be built and run as a .NET 8 application:

dotnet build
dotnet run -- <command> [options]

Or directly using the compiled executable:

DbSeeder.exe <command> [options]

Examples

Generate and load test organization

# Generate an organization called "seeded" with 10000 users using the @large.test email domain.
# Login using "admin@large.test" with password "asdfasdfasdf"
DbSeeder.exe organization -n seeded -u 10000 -d large.test

Dependencies

This utility depends on:

  • The Seeder class library
  • CommandDotNet for command-line parsing
  • .NET 8.0 runtime