Repository navigation
Command baseline
github-actions[bot] edited this page Nov 17, 2026
·
1 revision
Records every migration up to and including --to as applied, without running it.
migrate-mongo baseline --to <id>
$ migrate-mongo baseline --to 20261014164029
Baselined 3 migration(s) in batch 1.
| Option | Meaning |
|---|---|
--to <id> |
Required. The last migration to record as applied. |
Use it to adopt a database that already has those changes, e.g. one that was migrated by hand or by another tool.
Each baselined migration gets a baselined history entry. See
Adopting an Existing Database.
Kevsoft.MigrateMongo ·
NuGet ·
Releases ·
Issues ·
Found a mistake? These pages live in
wiki/ on main; pull requests welcome.
Get started
Migrations
- Writing Migrations
- Transactions
- Recording Results
- Dependency Injection
- Custom Templates
- Adopting an Existing Database
Collections
- Managing Collections
- Indexes
- Search Indexes
- Collection Options
- Validators
- Views
- Undeclared Collections
Deploying
Connecting
Reference
Concepts