dotnet-ef
9.0.9
Prefix Reserved
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 9.0.9
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 9.0.9
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-ef&version=9.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-ef --version 9.0.9
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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 | |
---|---|---|---|
10.0.0-rc.1.25451.107 | 2,747 | 9/9/2025 | |
10.0.0-preview.7.25380.108 | 3,161 | 8/12/2025 | |
10.0.0-preview.6.25358.103 | 1,147 | 7/15/2025 | |
10.0.0-preview.5.25277.114 | 1,307 | 6/6/2025 | |
10.0.0-preview.4.25258.110 | 954 | 5/12/2025 | |
10.0.0-preview.3.25171.6 | 1,148 | 4/10/2025 | |
10.0.0-preview.2.25163.8 | 865 | 3/18/2025 | |
10.0.0-preview.1.25081.1 | 921 | 2/25/2025 | |
9.0.9 | 1,579,295 | 9/9/2025 | |
9.0.8 | 2,104,696 | 8/5/2025 | |
9.0.7 | 1,353,745 | 7/8/2025 | |
9.0.6 | 1,518,631 | 6/10/2025 | |
9.0.5 | 1,604,539 | 5/13/2025 | |
9.0.4 | 2,184,060 | 4/8/2025 | |
9.0.3 | 1,779,515 | 3/11/2025 | |
9.0.2 | 1,728,971 | 2/11/2025 | |
9.0.1 | 1,539,359 | 1/14/2025 | |
9.0.0 | 2,960,508 | 11/12/2024 | |
9.0.0-rc.2.24474.1 | 5,883 | 10/8/2024 | |
9.0.0-rc.1.24451.1 | 2,946 | 9/10/2024 | |
9.0.0-preview.7.24405.3 | 1,847 | 8/13/2024 | |
9.0.0-preview.6.24327.4 | 2,183 | 7/9/2024 | |
9.0.0-preview.5.24306.3 | 1,929 | 6/11/2024 | |
9.0.0-preview.4.24267.1 | 1,452 | 5/21/2024 | |
9.0.0-preview.3.24172.4 | 2,047 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 1,751 | 3/12/2024 | |
9.0.0-preview.1.24081.2 | 2,035 | 2/13/2024 | |
8.0.20 | 109,137 | 9/9/2025 | |
8.0.19 | 131,795 | 8/5/2025 | |
8.0.18 | 85,613 | 7/8/2025 | |
8.0.17 | 175,876 | 6/10/2025 | |
8.0.16 | 135,562 | 5/13/2025 | |
8.0.15 | 224,811 | 4/8/2025 | |
8.0.14 | 273,091 | 3/11/2025 | |
8.0.13 | 193,318 | 2/11/2025 | |
8.0.12 | 230,228 | 1/14/2025 | |
8.0.11 | 637,886 | 11/12/2024 | |
8.0.10 | 2,271,368 | 10/8/2024 | |
8.0.8 | 3,645,551 | 8/13/2024 | |
8.0.7 | 1,976,324 | 7/9/2024 | |
8.0.6 | 2,892,615 | 5/28/2024 | |
8.0.5 | 947,303 | 5/14/2024 | |
8.0.4 | 2,264,598 | 4/9/2024 | |
8.0.3 | 1,551,479 | 3/12/2024 | |
8.0.2 | 1,727,077 | 2/13/2024 | |
8.0.1 | 2,146,004 | 1/9/2024 | |
8.0.0 | 3,282,086 | 11/14/2023 | |
8.0.0-rc.2.23480.1 | 20,382 | 10/10/2023 | |
8.0.0-rc.1.23419.6 | 8,239 | 9/12/2023 | |
8.0.0-preview.7.23375.4 | 2,300 | 8/8/2023 | |
8.0.0-preview.6.23329.4 | 3,014 | 7/11/2023 | |
8.0.0-preview.5.23280.1 | 1,908 | 6/13/2023 | |
8.0.0-preview.4.23259.3 | 2,260 | 5/16/2023 | |
8.0.0-preview.3.23174.2 | 2,621 | 4/11/2023 | |
8.0.0-preview.2.23128.3 | 2,322 | 3/14/2023 | |
8.0.0-preview.1.23111.4 | 1,116 | 2/21/2023 | |
7.0.20 | 249,842 | 5/28/2024 | |
7.0.19 | 36,050 | 5/14/2024 | |
7.0.18 | 73,567 | 4/9/2024 | |
7.0.17 | 105,017 | 3/12/2024 | |
7.0.16 | 151,029 | 2/13/2024 | |
7.0.15 | 185,044 | 1/9/2024 | |
7.0.14 | 1,004,103 | 11/14/2023 | |
7.0.13 | 1,623,829 | 10/24/2023 | |
7.0.12 | 681,101 | 10/10/2023 | |
7.0.11 | 1,280,248 | 9/12/2023 | |
7.0.10 | 1,638,023 | 8/8/2023 | |
7.0.9 | 1,130,483 | 7/11/2023 | |
7.0.8 | 770,621 | 6/22/2023 | |
7.0.7 | 438,953 | 6/13/2023 | |
7.0.5 | 2,590,810 | 4/11/2023 | |
7.0.4 | 1,049,130 | 3/14/2023 | |
7.0.3 | 1,255,653 | 2/14/2023 | |
7.0.2 | 1,381,484 | 1/10/2023 | |
7.0.1 | 787,763 | 12/13/2022 | |
7.0.0 | 1,690,337 | 11/7/2022 | |
7.0.0-rc.2.22472.11 | 4,098 | 10/11/2022 | |
7.0.0-rc.1.22426.7 | 3,555 | 9/14/2022 | |
7.0.0-preview.7.22376.2 | 1,847 | 8/9/2022 | |
7.0.0-preview.6.22329.4 | 2,879 | 7/12/2022 | |
7.0.0-preview.5.22302.2 | 2,809 | 6/14/2022 | |
7.0.0-preview.4.22229.2 | 2,747 | 5/10/2022 | |
7.0.0-preview.3.22175.1 | 1,194 | 4/13/2022 | |
7.0.0-preview.2.22153.1 | 913 | 3/14/2022 | |
7.0.0-preview.1.22076.6 | 2,264 | 2/17/2022 | |
6.0.36 | 129,370 | 11/12/2024 | |
6.0.35 | 44,299 | 10/8/2024 | |
6.0.33 | 64,822 | 8/13/2024 | |
6.0.32 | 32,478 | 7/9/2024 | |
6.0.31 | 70,285 | 5/28/2024 | |
6.0.30 | 23,875 | 5/14/2024 | |
6.0.29 | 70,292 | 4/9/2024 | |
6.0.28 | 79,800 | 3/12/2024 | |
6.0.27 | 62,789 | 2/13/2024 | |
6.0.26 | 87,868 | 1/9/2024 | |
6.0.25 | 246,921 | 11/14/2023 | |
6.0.24 | 58,935 | 10/24/2023 | |
6.0.23 | 40,507 | 10/10/2023 | |
6.0.22 | 57,537 | 9/12/2023 | |
6.0.21 | 109,367 | 8/8/2023 | |
6.0.20 | 78,551 | 7/11/2023 | |
6.0.19 | 63,804 | 6/22/2023 | |
6.0.18 | 38,029 | 6/13/2023 | |
6.0.16 | 153,756 | 4/11/2023 | |
6.0.15 | 115,769 | 3/14/2023 | |
6.0.14 | 150,644 | 2/14/2023 | |
6.0.13 | 178,424 | 1/10/2023 | |
6.0.12 | 150,734 | 12/13/2022 | |
6.0.11 | 322,127 | 11/7/2022 | |
6.0.10 | 1,359,160 | 10/11/2022 | |
6.0.9 | 1,051,570 | 9/13/2022 | |
6.0.8 | 1,653,382 | 8/9/2022 | |
6.0.7 | 1,430,842 | 7/12/2022 | |
6.0.6 | 1,185,630 | 6/14/2022 | |
6.0.5 | 1,791,358 | 5/10/2022 | |
6.0.4 | 693,114 | 4/11/2022 | |
6.0.3 | 827,826 | 3/8/2022 | |
6.0.2 | 657,906 | 2/8/2022 | |
6.0.1 | 1,082,043 | 12/14/2021 | |
6.0.0 | 1,308,787 | 11/8/2021 | |
6.0.0-rc.2.21480.5 | 7,303 | 10/12/2021 | |
6.0.0-rc.1.21452.10 | 9,297 | 9/14/2021 | |
6.0.0-preview.7.21378.4 | 14,477 | 8/10/2021 | |
6.0.0-preview.6.21352.1 | 1,531 | 7/14/2021 | |
6.0.0-preview.5.21301.9 | 1,988 | 6/15/2021 | |
6.0.0-preview.4.21253.1 | 1,182 | 5/24/2021 | |
6.0.0-preview.3.21201.2 | 11,131 | 4/8/2021 | |
6.0.0-preview.2.21154.2 | 1,667 | 3/11/2021 | |
6.0.0-preview.1.21102.2 | 1,630 | 2/12/2021 | |
5.0.17 | 235,311 | 5/10/2022 | |
5.0.16 | 23,663 | 4/11/2022 | |
5.0.15 | 21,536 | 3/8/2022 | |
5.0.14 | 19,348 | 2/8/2022 | |
5.0.13 | 38,702 | 12/14/2021 | |
5.0.12 | 63,671 | 11/7/2021 | |
5.0.11 | 413,122 | 10/12/2021 | |
5.0.10 | 488,139 | 9/14/2021 | |
5.0.9 | 431,105 | 8/10/2021 | |
5.0.8 | 375,620 | 7/13/2021 | |
5.0.7 | 457,866 | 6/8/2021 | |
5.0.6 | 447,838 | 5/11/2021 | |
5.0.5 | 512,672 | 4/6/2021 | |
5.0.4 | 299,504 | 3/9/2021 | |
5.0.3 | 387,980 | 2/9/2021 | |
5.0.2 | 333,530 | 1/12/2021 | |
5.0.1 | 390,569 | 12/8/2020 | |
5.0.0 | 488,783 | 11/9/2020 | |
5.0.0-rc.2.20475.6 | 6,849 | 10/13/2020 | |
5.0.0-rc.1.20451.13 | 11,236 | 9/14/2020 | |
5.0.0-preview.8.20407.4 | 3,154 | 8/25/2020 | |
5.0.0-preview.7.20365.15 | 1,860 | 7/21/2020 | |
5.0.0-preview.6.20312.4 | 4,793 | 6/25/2020 | |
5.0.0-preview.5.20278.2 | 2,402 | 6/10/2020 | |
5.0.0-preview.4.20220.10 | 1,049 | 5/18/2020 | |
5.0.0-preview.3.20181.2 | 1,574 | 4/23/2020 | |
5.0.0-preview.2.20159.4 | 931 | 4/2/2020 | |
5.0.0-preview.2.20120.8 | 1,224 | 3/16/2020 | |
3.1.32 | 97,392 | 12/13/2022 | |
3.1.31 | 10,583 | 11/8/2022 | |
3.1.30 | 11,549 | 10/11/2022 | |
3.1.29 | 13,099 | 9/13/2022 | |
3.1.28 | 22,940 | 8/9/2022 | |
3.1.27 | 27,223 | 7/12/2022 | |
3.1.26 | 29,754 | 6/14/2022 | |
3.1.25 | 13,484 | 5/10/2022 | |
3.1.24 | 9,788 | 4/11/2022 | |
3.1.23 | 13,554 | 3/8/2022 | |
3.1.22 | 28,145 | 12/14/2021 | |
3.1.21 | 22,038 | 11/7/2021 | |
3.1.20 | 16,678 | 10/11/2021 | |
3.1.19 | 22,347 | 9/14/2021 | |
3.1.18 | 28,643 | 8/10/2021 | |
3.1.17 | 25,812 | 7/13/2021 | |
3.1.16 | 24,217 | 6/8/2021 | |
3.1.15 | 18,089 | 5/11/2021 | |
3.1.14 | 46,520 | 4/6/2021 | |
3.1.13 | 42,555 | 3/9/2021 | |
3.1.12 | 50,047 | 2/9/2021 | |
3.1.11 | 34,671 | 1/12/2021 | |
3.1.10 | 129,989 | 11/9/2020 | |
3.1.9 | 335,057 | 10/13/2020 | |
3.1.8 | 378,241 | 9/8/2020 | |
3.1.7 | 322,193 | 8/11/2020 | |
3.1.6 | 337,274 | 7/14/2020 | |
3.1.5 | 325,814 | 6/9/2020 | |
3.1.4 | 311,619 | 5/12/2020 | |
3.1.3 | 533,379 | 3/24/2020 | |
3.1.2 | 363,382 | 2/19/2020 | |
3.1.1 | 522,511 | 1/14/2020 | |
3.1.0 | 516,376 | 12/3/2019 | |
3.1.0-preview3.19554.8 | 3,999 | 11/13/2019 | |
3.1.0-preview2.19525.5 | 981 | 11/1/2019 | |
3.1.0-preview1.19506.2 | 2,287 | 10/15/2019 | |
3.0.3 | 12,295 | 2/19/2020 | |
3.0.2 | 9,413 | 1/14/2020 | |
3.0.1 | 25,840 | 11/18/2019 | |
3.0.0 | 558,490 | 9/23/2019 | |
3.0.0-rc1.19456.14 | 1,994 | 9/16/2019 | |
3.0.0-preview9.19423.6 | 3,407 | 9/4/2019 | |
3.0.0-preview8.19405.11 | 5,763 | 8/13/2019 | |
3.0.0-preview7.19362.6 | 7,086 | 7/23/2019 | |
3.0.0-preview6.19304.10 | 2,566 | 6/12/2019 | |
3.0.0-preview5.19227.1 | 2,749 | 5/6/2019 | |
3.0.0-preview4.19216.3 | 8,404 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 1,524 | 3/6/2019 | |
3.0.0-preview.19074.3 | 2,263 | 1/29/2019 | |
3.0.0-preview.18572.1 | 2,989 | 12/3/2018 | |
2.2.6 | 79,448 | 7/9/2019 | |
2.2.3 | 9,065 | 3/11/2019 | |
2.2.2 | 9,845 | 2/12/2019 | |
2.2.1 | 9,696 | 1/8/2019 | |
2.2.0 | 42,245 | 12/3/2018 | |
2.2.0-preview3-35497 | 7,934 | 10/17/2018 | |
2.2.0-preview2-35157 | 8,049 | 9/12/2018 | |
2.2.0-preview1-35029 | 8,175 | 8/22/2018 | |
2.1.14 | 26,075 | 11/18/2019 | |
2.1.11 | 11,173 | 5/14/2019 | |
2.1.8 | 8,604 | 2/12/2019 | |
2.1.4 | 20,180 | 10/1/2018 | |
2.1.3 | 9,515 | 9/11/2018 | |
2.1.2 | 8,816 | 8/21/2018 | |
2.1.1 | 14,042 | 6/18/2018 | |
2.1.0 | 38,226 | 5/29/2018 |