dotnet-ef
9.0.3
Prefix Reserved
There is a newer 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.3
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.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-ef&version=9.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-ef --version 9.0.3
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-preview.5.25277.114 | 131 | 6/6/2025 | |
10.0.0-preview.4.25258.110 | 749 | 5/12/2025 | |
10.0.0-preview.3.25171.6 | 898 | 4/10/2025 | |
10.0.0-preview.2.25163.8 | 732 | 3/18/2025 | |
10.0.0-preview.1.25081.1 | 764 | 2/25/2025 | |
9.0.5 | 1,387,610 | 5/13/2025 | |
9.0.4 | 1,928,469 | 4/8/2025 | |
9.0.3 | 1,666,372 | 3/11/2025 | |
9.0.2 | 1,643,741 | 2/11/2025 | |
9.0.1 | 1,467,574 | 1/14/2025 | |
9.0.0 | 2,753,111 | 11/12/2024 | |
9.0.0-rc.2.24474.1 | 5,542 | 10/8/2024 | |
9.0.0-rc.1.24451.1 | 2,823 | 9/10/2024 | |
9.0.0-preview.7.24405.3 | 1,717 | 8/13/2024 | |
9.0.0-preview.6.24327.4 | 2,060 | 7/9/2024 | |
9.0.0-preview.5.24306.3 | 1,819 | 6/11/2024 | |
9.0.0-preview.4.24267.1 | 1,322 | 5/21/2024 | |
9.0.0-preview.3.24172.4 | 1,913 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 1,596 | 3/12/2024 | |
9.0.0-preview.1.24081.2 | 1,947 | 2/13/2024 | |
8.0.16 | 93,832 | 5/13/2025 | |
8.0.15 | 167,204 | 4/8/2025 | |
8.0.14 | 193,903 | 3/11/2025 | |
8.0.13 | 150,557 | 2/11/2025 | |
8.0.12 | 198,158 | 1/14/2025 | |
8.0.11 | 516,214 | 11/12/2024 | |
8.0.10 | 2,131,667 | 10/8/2024 | |
8.0.8 | 3,463,036 | 8/13/2024 | |
8.0.7 | 1,875,892 | 7/9/2024 | |
8.0.6 | 2,725,131 | 5/28/2024 | |
8.0.5 | 886,865 | 5/14/2024 | |
8.0.4 | 2,138,946 | 4/9/2024 | |
8.0.3 | 1,488,376 | 3/12/2024 | |
8.0.2 | 1,631,366 | 2/13/2024 | |
8.0.1 | 2,043,978 | 1/9/2024 | |
8.0.0 | 3,081,393 | 11/14/2023 | |
8.0.0-rc.2.23480.1 | 19,767 | 10/10/2023 | |
8.0.0-rc.1.23419.6 | 8,066 | 9/12/2023 | |
8.0.0-preview.7.23375.4 | 2,229 | 8/8/2023 | |
8.0.0-preview.6.23329.4 | 2,936 | 7/11/2023 | |
8.0.0-preview.5.23280.1 | 1,817 | 6/13/2023 | |
8.0.0-preview.4.23259.3 | 2,176 | 5/16/2023 | |
8.0.0-preview.3.23174.2 | 2,522 | 4/11/2023 | |
8.0.0-preview.2.23128.3 | 2,184 | 3/14/2023 | |
8.0.0-preview.1.23111.4 | 1,035 | 2/21/2023 | |
7.0.20 | 209,209 | 5/28/2024 | |
7.0.19 | 34,378 | 5/14/2024 | |
7.0.18 | 69,891 | 4/9/2024 | |
7.0.17 | 99,656 | 3/12/2024 | |
7.0.16 | 144,836 | 2/13/2024 | |
7.0.15 | 179,246 | 1/9/2024 | |
7.0.14 | 945,777 | 11/14/2023 | |
7.0.13 | 1,531,746 | 10/24/2023 | |
7.0.12 | 674,317 | 10/10/2023 | |
7.0.11 | 1,265,606 | 9/12/2023 | |
7.0.10 | 1,612,832 | 8/8/2023 | |
7.0.9 | 1,121,264 | 7/11/2023 | |
7.0.8 | 760,638 | 6/22/2023 | |
7.0.7 | 434,975 | 6/13/2023 | |
7.0.5 | 2,556,975 | 4/11/2023 | |
7.0.4 | 1,041,740 | 3/14/2023 | |
7.0.3 | 1,239,118 | 2/14/2023 | |
7.0.2 | 1,367,672 | 1/10/2023 | |
7.0.1 | 781,130 | 12/13/2022 | |
7.0.0 | 1,648,251 | 11/7/2022 | |
7.0.0-rc.2.22472.11 | 4,007 | 10/11/2022 | |
7.0.0-rc.1.22426.7 | 3,437 | 9/14/2022 | |
7.0.0-preview.7.22376.2 | 1,783 | 8/9/2022 | |
7.0.0-preview.6.22329.4 | 2,804 | 7/12/2022 | |
7.0.0-preview.5.22302.2 | 2,710 | 6/14/2022 | |
7.0.0-preview.4.22229.2 | 2,662 | 5/10/2022 | |
7.0.0-preview.3.22175.1 | 1,114 | 4/13/2022 | |
7.0.0-preview.2.22153.1 | 839 | 3/14/2022 | |
7.0.0-preview.1.22076.6 | 2,176 | 2/17/2022 | |
6.0.36 | 94,759 | 11/12/2024 | |
6.0.35 | 42,400 | 10/8/2024 | |
6.0.33 | 61,080 | 8/13/2024 | |
6.0.32 | 30,222 | 7/9/2024 | |
6.0.31 | 66,586 | 5/28/2024 | |
6.0.30 | 22,577 | 5/14/2024 | |
6.0.29 | 64,731 | 4/9/2024 | |
6.0.28 | 72,965 | 3/12/2024 | |
6.0.27 | 60,231 | 2/13/2024 | |
6.0.26 | 85,582 | 1/9/2024 | |
6.0.25 | 236,266 | 11/14/2023 | |
6.0.24 | 57,185 | 10/24/2023 | |
6.0.23 | 39,383 | 10/10/2023 | |
6.0.22 | 54,318 | 9/12/2023 | |
6.0.21 | 98,741 | 8/8/2023 | |
6.0.20 | 73,698 | 7/11/2023 | |
6.0.19 | 60,541 | 6/22/2023 | |
6.0.18 | 36,720 | 6/13/2023 | |
6.0.16 | 150,521 | 4/11/2023 | |
6.0.15 | 110,908 | 3/14/2023 | |
6.0.14 | 147,103 | 2/14/2023 | |
6.0.13 | 170,742 | 1/10/2023 | |
6.0.12 | 144,171 | 12/13/2022 | |
6.0.11 | 308,036 | 11/7/2022 | |
6.0.10 | 1,350,694 | 10/11/2022 | |
6.0.9 | 1,044,375 | 9/13/2022 | |
6.0.8 | 1,635,704 | 8/9/2022 | |
6.0.7 | 1,412,299 | 7/12/2022 | |
6.0.6 | 1,157,321 | 6/14/2022 | |
6.0.5 | 1,743,976 | 5/10/2022 | |
6.0.4 | 685,922 | 4/11/2022 | |
6.0.3 | 819,029 | 3/8/2022 | |
6.0.2 | 634,551 | 2/8/2022 | |
6.0.1 | 1,066,135 | 12/14/2021 | |
6.0.0 | 1,242,915 | 11/8/2021 | |
6.0.0-rc.2.21480.5 | 7,208 | 10/12/2021 | |
6.0.0-rc.1.21452.10 | 9,201 | 9/14/2021 | |
6.0.0-preview.7.21378.4 | 13,738 | 8/10/2021 | |
6.0.0-preview.6.21352.1 | 1,448 | 7/14/2021 | |
6.0.0-preview.5.21301.9 | 1,899 | 6/15/2021 | |
6.0.0-preview.4.21253.1 | 1,104 | 5/24/2021 | |
6.0.0-preview.3.21201.2 | 9,985 | 4/8/2021 | |
6.0.0-preview.2.21154.2 | 1,579 | 3/11/2021 | |
6.0.0-preview.1.21102.2 | 1,534 | 2/12/2021 | |
5.0.17 | 224,610 | 5/10/2022 | |
5.0.16 | 22,933 | 4/11/2022 | |
5.0.15 | 20,952 | 3/8/2022 | |
5.0.14 | 18,664 | 2/8/2022 | |
5.0.13 | 38,080 | 12/14/2021 | |
5.0.12 | 62,264 | 11/7/2021 | |
5.0.11 | 410,390 | 10/12/2021 | |
5.0.10 | 469,199 | 9/14/2021 | |
5.0.9 | 427,685 | 8/10/2021 | |
5.0.8 | 371,905 | 7/13/2021 | |
5.0.7 | 453,582 | 6/8/2021 | |
5.0.6 | 442,184 | 5/11/2021 | |
5.0.5 | 506,796 | 4/6/2021 | |
5.0.4 | 297,638 | 3/9/2021 | |
5.0.3 | 382,859 | 2/9/2021 | |
5.0.2 | 330,584 | 1/12/2021 | |
5.0.1 | 385,429 | 12/8/2020 | |
5.0.0 | 483,129 | 11/9/2020 | |
5.0.0-rc.2.20475.6 | 6,759 | 10/13/2020 | |
5.0.0-rc.1.20451.13 | 11,109 | 9/14/2020 | |
5.0.0-preview.8.20407.4 | 3,055 | 8/25/2020 | |
5.0.0-preview.7.20365.15 | 1,753 | 7/21/2020 | |
5.0.0-preview.6.20312.4 | 4,692 | 6/25/2020 | |
5.0.0-preview.5.20278.2 | 2,310 | 6/10/2020 | |
5.0.0-preview.4.20220.10 | 957 | 5/18/2020 | |
5.0.0-preview.3.20181.2 | 1,477 | 4/23/2020 | |
5.0.0-preview.2.20159.4 | 838 | 4/2/2020 | |
5.0.0-preview.2.20120.8 | 1,132 | 3/16/2020 | |
3.1.32 | 87,470 | 12/13/2022 | |
3.1.31 | 10,255 | 11/8/2022 | |
3.1.30 | 11,228 | 10/11/2022 | |
3.1.29 | 12,749 | 9/13/2022 | |
3.1.28 | 22,526 | 8/9/2022 | |
3.1.27 | 26,499 | 7/12/2022 | |
3.1.26 | 29,137 | 6/14/2022 | |
3.1.25 | 13,142 | 5/10/2022 | |
3.1.24 | 9,420 | 4/11/2022 | |
3.1.23 | 13,070 | 3/8/2022 | |
3.1.22 | 27,506 | 12/14/2021 | |
3.1.21 | 21,594 | 11/7/2021 | |
3.1.20 | 16,347 | 10/11/2021 | |
3.1.19 | 21,971 | 9/14/2021 | |
3.1.18 | 27,976 | 8/10/2021 | |
3.1.17 | 25,484 | 7/13/2021 | |
3.1.16 | 23,850 | 6/8/2021 | |
3.1.15 | 17,747 | 5/11/2021 | |
3.1.14 | 45,672 | 4/6/2021 | |
3.1.13 | 41,457 | 3/9/2021 | |
3.1.12 | 49,116 | 2/9/2021 | |
3.1.11 | 34,334 | 1/12/2021 | |
3.1.10 | 128,303 | 11/9/2020 | |
3.1.9 | 332,632 | 10/13/2020 | |
3.1.8 | 374,979 | 9/8/2020 | |
3.1.7 | 317,818 | 8/11/2020 | |
3.1.6 | 334,296 | 7/14/2020 | |
3.1.5 | 322,765 | 6/9/2020 | |
3.1.4 | 307,217 | 5/12/2020 | |
3.1.3 | 530,018 | 3/24/2020 | |
3.1.2 | 357,841 | 2/19/2020 | |
3.1.1 | 518,756 | 1/14/2020 | |
3.1.0 | 511,328 | 12/3/2019 | |
3.1.0-preview3.19554.8 | 3,913 | 11/13/2019 | |
3.1.0-preview2.19525.5 | 901 | 11/1/2019 | |
3.1.0-preview1.19506.2 | 2,193 | 10/15/2019 | |
3.0.3 | 12,176 | 2/19/2020 | |
3.0.2 | 9,300 | 1/14/2020 | |
3.0.1 | 25,603 | 11/18/2019 | |
3.0.0 | 553,817 | 9/23/2019 | |
3.0.0-rc1.19456.14 | 1,899 | 9/16/2019 | |
3.0.0-preview9.19423.6 | 3,319 | 9/4/2019 | |
3.0.0-preview8.19405.11 | 5,674 | 8/13/2019 | |
3.0.0-preview7.19362.6 | 6,997 | 7/23/2019 | |
3.0.0-preview6.19304.10 | 2,474 | 6/12/2019 | |
3.0.0-preview5.19227.1 | 2,655 | 5/6/2019 | |
3.0.0-preview4.19216.3 | 8,314 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 1,430 | 3/6/2019 | |
3.0.0-preview.19074.3 | 2,170 | 1/29/2019 | |
3.0.0-preview.18572.1 | 2,900 | 12/3/2018 | |
2.2.6 | 78,382 | 7/9/2019 | |
2.2.3 | 8,917 | 3/11/2019 | |
2.2.2 | 9,638 | 2/12/2019 | |
2.2.1 | 9,498 | 1/8/2019 | |
2.2.0 | 39,854 | 12/3/2018 | |
2.2.0-preview3-35497 | 7,805 | 10/17/2018 | |
2.2.0-preview2-35157 | 7,887 | 9/12/2018 | |
2.2.0-preview1-35029 | 8,021 | 8/22/2018 | |
2.1.14 | 25,363 | 11/18/2019 | |
2.1.11 | 11,062 | 5/14/2019 | |
2.1.8 | 8,481 | 2/12/2019 | |
2.1.4 | 19,960 | 10/1/2018 | |
2.1.3 | 9,349 | 9/11/2018 | |
2.1.2 | 8,651 | 8/21/2018 | |
2.1.1 | 13,801 | 6/18/2018 | |
2.1.0 | 37,956 | 5/29/2018 |