dotnet-ef 8.0.21

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global dotnet-ef --version 8.0.21
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local dotnet-ef --version 8.0.21
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-ef&version=8.0.21
                    
nuke :add-package dotnet-ef --version 8.0.21
                    

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 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.2.25502.107 1,497 10/14/2025
10.0.0-rc.1.25451.107 3,926 9/9/2025
10.0.0-preview.7.25380.108 3,574 8/12/2025
10.0.0-preview.6.25358.103 1,221 7/15/2025
10.0.0-preview.5.25277.114 1,344 6/6/2025
10.0.0-preview.4.25258.110 979 5/12/2025
10.0.0-preview.3.25171.6 1,185 4/10/2025
10.0.0-preview.2.25163.8 888 3/18/2025
10.0.0-preview.1.25081.1 947 2/25/2025
9.0.10 612,876 10/14/2025
9.0.9 2,084,566 9/9/2025
9.0.8 2,138,623 8/5/2025
9.0.7 1,373,091 7/8/2025
9.0.6 1,533,412 6/10/2025
9.0.5 1,619,282 5/13/2025
9.0.4 2,228,390 4/8/2025
9.0.3 1,796,352 3/11/2025
9.0.2 1,739,883 2/11/2025
9.0.1 1,553,866 1/14/2025
9.0.0 2,993,568 11/12/2024
9.0.0-rc.2.24474.1 5,991 10/8/2024
9.0.0-rc.1.24451.1 2,973 9/10/2024
9.0.0-preview.7.24405.3 1,878 8/13/2024
9.0.0-preview.6.24327.4 2,205 7/9/2024
9.0.0-preview.5.24306.3 1,948 6/11/2024
9.0.0-preview.4.24267.1 1,475 5/21/2024
9.0.0-preview.3.24172.4 2,075 4/11/2024
9.0.0-preview.2.24128.4 1,772 3/12/2024
9.0.0-preview.1.24081.2 2,051 2/13/2024
8.0.21 49,957 10/14/2025
8.0.20 158,843 9/9/2025
8.0.19 139,245 8/5/2025
8.0.18 90,209 7/8/2025
8.0.17 184,251 6/10/2025
8.0.16 141,266 5/13/2025
8.0.15 231,240 4/8/2025
8.0.14 286,705 3/11/2025
8.0.13 200,498 2/11/2025
8.0.12 234,967 1/14/2025
8.0.11 662,225 11/12/2024
8.0.10 2,294,858 10/8/2024
8.0.8 3,678,092 8/13/2024
8.0.7 1,994,431 7/9/2024
8.0.6 2,924,088 5/28/2024
8.0.5 953,078 5/14/2024
8.0.4 2,284,021 4/9/2024
8.0.3 1,563,739 3/12/2024
8.0.2 1,745,076 2/13/2024
8.0.1 2,162,556 1/9/2024
8.0.0 3,320,927 11/14/2023
8.0.0-rc.2.23480.1 20,770 10/10/2023
8.0.0-rc.1.23419.6 8,251 9/12/2023
8.0.0-preview.7.23375.4 2,315 8/8/2023
8.0.0-preview.6.23329.4 3,029 7/11/2023
8.0.0-preview.5.23280.1 1,919 6/13/2023
8.0.0-preview.4.23259.3 2,275 5/16/2023
8.0.0-preview.3.23174.2 2,633 4/11/2023
8.0.0-preview.2.23128.3 2,363 3/14/2023
8.0.0-preview.1.23111.4 1,129 2/21/2023
7.0.20 256,910 5/28/2024
7.0.19 36,356 5/14/2024
7.0.18 74,140 4/9/2024
7.0.17 105,832 3/12/2024
7.0.16 151,895 2/13/2024
7.0.15 186,211 1/9/2024
7.0.14 1,013,760 11/14/2023
7.0.13 1,640,160 10/24/2023
7.0.12 682,597 10/10/2023
7.0.11 1,282,811 9/12/2023
7.0.10 1,641,273 8/8/2023
7.0.9 1,131,714 7/11/2023
7.0.8 772,363 6/22/2023
7.0.7 439,986 6/13/2023
7.0.5 2,596,149 4/11/2023
7.0.4 1,050,660 3/14/2023
7.0.3 1,258,105 2/14/2023
7.0.2 1,383,947 1/10/2023
7.0.1 788,629 12/13/2022
7.0.0 1,696,496 11/7/2022
7.0.0-rc.2.22472.11 4,119 10/11/2022
7.0.0-rc.1.22426.7 3,577 9/14/2022
7.0.0-preview.7.22376.2 1,862 8/9/2022
7.0.0-preview.6.22329.4 2,896 7/12/2022
7.0.0-preview.5.22302.2 2,829 6/14/2022
7.0.0-preview.4.22229.2 2,758 5/10/2022
7.0.0-preview.3.22175.1 1,209 4/13/2022
7.0.0-preview.2.22153.1 932 3/14/2022
7.0.0-preview.1.22076.6 2,275 2/17/2022
6.0.36 135,921 11/12/2024
6.0.35 44,671 10/8/2024
6.0.33 65,490 8/13/2024
6.0.32 32,887 7/9/2024
6.0.31 71,045 5/28/2024
6.0.30 24,119 5/14/2024
6.0.29 70,688 4/9/2024
6.0.28 80,668 3/12/2024
6.0.27 63,151 2/13/2024
6.0.26 88,219 1/9/2024
6.0.25 248,704 11/14/2023
6.0.24 59,177 10/24/2023
6.0.23 40,704 10/10/2023
6.0.22 58,849 9/12/2023
6.0.21 110,875 8/8/2023
6.0.20 79,415 7/11/2023
6.0.19 64,229 6/22/2023
6.0.18 38,224 6/13/2023
6.0.16 154,205 4/11/2023
6.0.15 116,657 3/14/2023
6.0.14 151,247 2/14/2023
6.0.13 179,619 1/10/2023
6.0.12 151,674 12/13/2022
6.0.11 325,391 11/7/2022
6.0.10 1,360,563 10/11/2022
6.0.9 1,052,830 9/13/2022
6.0.8 1,656,036 8/9/2022
6.0.7 1,433,436 7/12/2022
6.0.6 1,191,716 6/14/2022
6.0.5 1,798,039 5/10/2022
6.0.4 694,585 4/11/2022
6.0.3 829,117 3/8/2022
6.0.2 661,254 2/8/2022
6.0.1 1,084,565 12/14/2021
6.0.0 1,319,137 11/8/2021
6.0.0-rc.2.21480.5 7,315 10/12/2021
6.0.0-rc.1.21452.10 9,316 9/14/2021
6.0.0-preview.7.21378.4 14,621 8/10/2021
6.0.0-preview.6.21352.1 1,545 7/14/2021
6.0.0-preview.5.21301.9 2,006 6/15/2021
6.0.0-preview.4.21253.1 1,198 5/24/2021
6.0.0-preview.3.21201.2 11,286 4/8/2021
6.0.0-preview.2.21154.2 1,685 3/11/2021
6.0.0-preview.1.21102.2 1,644 2/12/2021
5.0.17 237,279 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 23,754 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 21,652 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 19,466 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 38,821 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 63,911 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 413,707 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 490,243 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 431,654 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 376,305 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 458,614 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 448,841 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 513,728 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 299,752 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 388,810 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 334,068 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 391,125 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 489,578 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 6,867 10/13/2020
5.0.0-rc.1.20451.13 11,254 9/14/2020
5.0.0-preview.8.20407.4 3,167 8/25/2020
5.0.0-preview.7.20365.15 1,876 7/21/2020
5.0.0-preview.6.20312.4 4,813 6/25/2020
5.0.0-preview.5.20278.2 2,423 6/10/2020
5.0.0-preview.4.20220.10 1,068 5/18/2020
5.0.0-preview.3.20181.2 1,589 4/23/2020
5.0.0-preview.2.20159.4 947 4/2/2020
5.0.0-preview.2.20120.8 1,238 3/16/2020
3.1.32 99,470 12/13/2022
3.1.31 10,624 11/8/2022
3.1.30 11,596 10/11/2022
3.1.29 13,148 9/13/2022
3.1.28 23,039 8/9/2022
3.1.27 27,356 7/12/2022
3.1.26 29,836 6/14/2022
3.1.25 13,529 5/10/2022
3.1.24 9,827 4/11/2022
3.1.23 13,637 3/8/2022
3.1.22 28,212 12/14/2021
3.1.21 22,093 11/7/2021
3.1.20 16,728 10/11/2021
3.1.19 22,403 9/14/2021
3.1.18 28,727 8/10/2021
3.1.17 25,857 7/13/2021
3.1.16 24,263 6/8/2021
3.1.15 18,145 5/11/2021
3.1.14 46,657 4/6/2021
3.1.13 42,776 3/9/2021
3.1.12 50,242 2/9/2021
3.1.11 34,715 1/12/2021
3.1.10 130,344 11/9/2020
3.1.9 335,381 10/13/2020
3.1.8 378,727 9/8/2020
3.1.7 323,212 8/11/2020
3.1.6 337,850 7/14/2020
3.1.5 326,341 6/9/2020
3.1.4 312,387 5/12/2020
3.1.3 533,917 3/24/2020
3.1.2 364,328 2/19/2020
3.1.1 523,074 1/14/2020
3.1.0 516,980 12/3/2019
3.1.0-preview3.19554.8 4,016 11/13/2019
3.1.0-preview2.19525.5 1,002 11/1/2019
3.1.0-preview1.19506.2 2,305 10/15/2019
3.0.3 12,318 2/19/2020
3.0.2 9,431 1/14/2020
3.0.1 25,872 11/18/2019
3.0.0 559,103 9/23/2019
3.0.0-rc1.19456.14 2,013 9/16/2019
3.0.0-preview9.19423.6 3,426 9/4/2019
3.0.0-preview8.19405.11 5,784 8/13/2019
3.0.0-preview7.19362.6 7,106 7/23/2019
3.0.0-preview6.19304.10 2,582 6/12/2019
3.0.0-preview5.19227.1 2,767 5/6/2019
3.0.0-preview4.19216.3 8,419 4/18/2019
3.0.0-preview3.19153.1 1,540 3/6/2019
3.0.0-preview.19074.3 2,285 1/29/2019
3.0.0-preview.18572.1 3,005 12/3/2018
2.2.6 79,539 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.3 9,088 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 9,877 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 9,724 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 42,676 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 7,953 10/17/2018
2.2.0-preview2-35157 8,073 9/12/2018
2.2.0-preview1-35029 8,200 8/22/2018
2.1.14 26,218 11/18/2019
2.1.11 11,196 5/14/2019
2.1.8 8,618 2/12/2019
2.1.4 20,225 10/1/2018
2.1.3 9,537 9/11/2018
2.1.2 8,844 8/21/2018
2.1.1 14,077 6/18/2018
2.1.0 38,283 5/29/2018