Repository navigation
Command unlock
github-actions[bot] edited this page Nov 17, 2026
·
1 revision
Removes the migration lock.
migrate-mongo unlock [--force]
migrate-mongo unlock # remove an expired lock
migrate-mongo unlock --force # remove a lock even if it hasn't expired; only if you're sure its run is dead| Option | Meaning |
|---|---|
--force |
Remove the lock even if it hasn't expired. |
You rarely need this. A run renews its lock while it's working, and the lock expires lockTtl seconds (5 minutes by
default) after a run dies, so the next run takes it then. Use --force only when you know the run holding it has
stopped and you can't wait. Removing a live run's lock lets a second run start alongside it. See
Safety.
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