mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 22:05:35 -05:00
Seeder Scenarios
Not sure what to run? Start here. Each scenario starts with a problem and ends with a command.
The Seeder writes directly to your database. Only run it against local development databases.
All commands run from util/SeederUtility/. All seeded users use password asdfasdfasdf (override with --password). Use --mangle for test isolation (randomizes IDs and emails so repeated runs don't collide).
For CLI flag details, see the SeederUtility reference. For the full preset catalog, see presets.md.
Scenarios
| Scenario | Problem | Command type |
|---|---|---|
| Fresh database | I need a working database with realistic data | preset |
| Permission testing | I'm building a feature that touches collections or permissions | preset |
| Scale testing | Will my code survive at 250 / 1,000 / 5,000+ users? | preset |
| Bug reproduction | I need to reproduce a customer's org shape | organization |
Contributing a Scenario
If you solved a problem with the Seeder that isn't listed here, add it. One file per scenario.
- Copy the template below into a new file in this folder (kebab-case name)
- Fill it in
- Add a row to the table above
- Open a PR
Template
# [Problem as a question]
> One-sentence pain statement.
## Quick start
\`\`\`bash
dotnet run -- <your command here>
\`\`\`
## What you get
What's in the database after this runs. Entity counts, login credentials, notable structure.
## Who this is for
Engineers who feel this pain.
## Variations
Other flags or presets worth trying for this problem.
Field Test Feedback
Tried the Seeder and have feedback? We want to hear it:
- What did you try?
- What worked?
- What was confusing or missing?
- What scenario do you wish existed?
Open an issue or start a thread in Slack.