dotnet-ef
11.0.0-preview.3.26207.106
Prefix Reserved
This is a prerelease version of dotnet-ef.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global dotnet-ef --version 11.0.0-preview.3.26207.106
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-preview.3.26207.106
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-ef&version=11.0.0-preview.3.26207.106&prerelease
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-preview.3.26207.106
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-preview.4.26230.115 | 711 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 2,037 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 1,530 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 2,147 | 2/10/2026 |
| 10.0.8 | 228,043 | 5/12/2026 |
| 10.0.7 | 744,434 | 4/21/2026 |
| 10.0.6 | 282,914 | 4/14/2026 |
| 10.0.5 | 1,205,251 | 3/12/2026 |
| 10.0.4 | 129,370 | 3/10/2026 |
| 10.0.3 | 1,868,373 | 2/10/2026 |
| 9.0.16 | 15,755 | 5/12/2026 |
| 9.0.15 | 85,447 | 4/14/2026 |
| 9.0.14 | 134,951 | 3/10/2026 |
| 9.0.13 | 132,882 | 2/10/2026 |
| 9.0.12 | 159,150 | 1/13/2026 |
| 8.0.27 | 27,926 | 5/12/2026 |
| 8.0.26 | 114,737 | 4/14/2026 |
| 8.0.25 | 180,342 | 3/10/2026 |
| 8.0.24 | 178,805 | 2/10/2026 |
| 8.0.23 | 159,969 | 1/13/2026 |
Loading failed