dotnet-ef
11.0.0
Prefix Reserved
dotnet tool install --global dotnet-ef --version 11.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local dotnet-ef --version 11.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-ef&version=11.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-ef --version 11.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
The Entity Framework Core tools help with design-time development tasks. They're primarily used to manage Migrations and to scaffold a DbContext and entity types by reverse engineering the schema of a database.
This package, dotnet-ef is for cross-platform command line tooling that can be used anywhere.
Usage
Install the tool package using:
dotnet tool install --global dotnet-ef
The available commands are listed in the following table.
| Command | Usage |
|---|---|
| dotnet ef --help | Displays information about Entity Framework commands. |
| dotnet ef database drop | Drops the database. |
| dotnet ef database update | Updates the database to the last migration or to a specified migration |
| dotnet ef dbcontext info | Gets information about a DbContext type. |
| dotnet ef dbcontext list | Lists available DbContext types. |
| dotnet ef dbcontext optimize | Generates a compiled version of the model used by the DbContext. |
| dotnet ef dbcontext scaffold | Generates a DbContext and entity type classes for a specified database. |
| dotnet ef dbcontext script | Generates a SQL script from the DbContext. Bypasses any migrations. |
| dotnet ef migrations add | Adds a new migration. |
| dotnet ef migrations bundle | Creates an executable to update the database. |
| dotnet ef migrations has-pending-model-changes | Checks if any changes have been made to the model since the last migration. |
| dotnet ef migrations list | Lists available migrations. |
| dotnet ef migrations remove | Removes the last migration. |
| dotnet ef migrations script | Generates a SQL script from the migrations. |
Getting started with EF Core
See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.
Feedback
If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0 | 75,166 | 11/10/2026 |
| 11.0.0-rc.3.26522.148 | 9,539 | 10/25/2026 |
| 11.0.0-rc.2.26504.105 | 12,352 | 10/13/2026 |
| 11.0.0-rc.1.26425.128 | 21,946 | 9/8/2026 |
| 11.0.0-preview.7.26381.103 | 5,375 | 8/11/2026 |
| 10.0.15 | 79,811 | 11/10/2026 |
| 10.0.14 | 1,292,738 | 10/25/2026 |
| 10.0.13 | 1,356,303 | 10/13/2026 |
| 10.0.12 | 3,300,643 | 9/8/2026 |
| 10.0.11 | 2,514,826 | 8/11/2026 |
| 9.0.23 | 12,487 | 11/10/2026 |
| 9.0.22 | 67,046 | 10/25/2026 |
| 9.0.21 | 46,703 | 10/13/2026 |
| 9.0.20 | 137,944 | 9/8/2026 |
| 9.0.19 | 111,175 | 8/11/2026 |
| 8.0.34 | 11,369 | 11/10/2026 |
| 8.0.33 | 72,071 | 10/25/2026 |
| 8.0.32 | 59,792 | 10/13/2026 |
| 8.0.31 | 229,822 | 9/8/2026 |
| 8.0.30 | 183,877 | 8/11/2026 |
Loading failed