ErikEJ.EFCorePowerTools.Cli 7.1.12-nightly

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of ErikEJ.EFCorePowerTools.Cli.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global ErikEJ.EFCorePowerTools.Cli --version 7.1.12-nightly
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 ErikEJ.EFCorePowerTools.Cli --version 7.1.12-nightly
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ErikEJ.EFCorePowerTools.Cli&version=7.1.12-nightly&prerelease
nuke :add-package ErikEJ.EFCorePowerTools.Cli --version 7.1.12-nightly

EF Core Power Tools CLI

Cross platform command line tool for advanced EF Core reverse engineering. See the full guide explaining all the features here.

Getting started

The tool runs on any operating system with the .NET 6.0 / .NET 8.0 runtime installed.

For a quick intro you can watch this 2 minute demo video.

Installing the tool

EF Core 8:

dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*

EF Core 7:

dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 7.0.*

EF Core 6:

dotnet tool install ErikEJ.EFCorePowerTools.Cli -g --version 6.0.*

Running the tool

From the folder where you want the code to be generated (usually where your .NET project is located)

efcpt "Server=(local);Initial Catalog=Northwind;User id=user;Pwd=secret123;Encrypt=false" mssql

Type efcpt --help for help on command line options.

The provider name (mssql) may not be required, as an attempt is made to resolve the provider from the connection string.

Configuring options

A configuration file efcpt-config.json is created in the output folder, and you can open this file in your editor to modify the default options. If your editor supports it (for example VS Code), it will provide syntax guidance for the file. For reference there is a fully populated sample file here.

Updating to new configuration

After updating the efcpt-config.json, you will need to run the efcpt CLI command from above once again in order to update the generated code.

If you have updated the configuration file in a way that requires files to be deleted - by excluding objects for example - then you will need to set the "soft-delete-obsolete-files" option in the configuration file to true or delete the files manually.

Excluding objects

The config file will always contain all current database objects.

You can exclude indvidual database objects with "exclude": true for the object.

You can also use the exclusionWildcard item under each type of data object to filter included objects.

You can use the following filter expressions:

  • *: Exclude all objects in section. Overrides all other filters.
  • abc*: Exclude all objects in section that starts with abc. Multiple filters allowed.
  • *xyz: Exclude all objects in section that ends with xyz. Multiple filters allowed.
  • *mno*: Exclude all objects in section that contains mno. Multiple filters allowed.

Filters will apply unless "exclude": false is explicitly set for a database object.

All filters are case sensitive.

"tables": [
      {
         "exclusionWildcard": "*"
      },
      {
         "name": "[dbo].[Users]",
         "exclude": false
      },
      {
         "name": "[dbo].[Messages]"
      }
  ],

In the example above, only the Users table will be selected.

"tables": [
      {
         "exclusionWildcard": "[other].*"
      },
      {
         "name": "[dbo].[Users]",
         "exclude": false
      },
      {
         "name": "[other].[Accounts]"
      },      
      {
         "name": "[other].[Messages]"
      }
  ],

In the example above, Users and Messages tables will be selected.

Generate a Mermaid ER diagram

The tool can generate a Mermaid ER diagram during exectution, just set the code-generation option generate-mermaid-diagram to true and a dbdiagram.md file will be created in the output folder.

Updating the tool

dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*

Release notes - notice the +CLI label.

Getting the latest daily build

dotnet tool update ErikEJ.EFCorePowerTools.Cli -g --version 8.0.*-*
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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
8.1.229-nightly 76 5/23/2024
8.1.228-nightly 74 5/23/2024
8.1.226-nightly 89 5/22/2024
8.1.220 639 5/20/2024
8.1.219-nightly 99 5/15/2024
8.1.218-nightly 67 5/15/2024
8.1.217-nightly 61 5/14/2024
8.1.215-nightly 65 5/13/2024
8.1.210-nightly 54 5/12/2024
8.1.209-nightly 55 5/12/2024
8.1.207-nightly 80 5/10/2024
8.1.206 830 5/9/2024
8.1.206-nightly 68 5/10/2024
8.1.204-nightly 109 5/8/2024
8.1.202-nightly 99 5/8/2024
8.1.200-nightly 107 5/2/2024
8.1.199-nightly 95 5/2/2024
8.1.198-nightly 128 5/1/2024
8.1.197-nightly 114 5/1/2024
8.1.195-nightly 174 4/30/2024
8.1.193-nightly 132 4/30/2024
8.1.192-nightly 121 4/30/2024
8.1.188-nightly 85 4/29/2024
8.1.186-nightly 89 4/29/2024
8.1.182-nightly 128 4/26/2024
8.1.180-nightly 128 4/26/2024
8.1.178-nightly 138 4/24/2024
8.1.170-nightly 241 4/12/2024
8.1.169-nightly 121 4/12/2024
8.1.161-nightly 265 4/5/2024
8.1.157-nightly 181 4/4/2024
8.1.151-nightly 224 3/29/2024
8.1.150-nightly 245 3/26/2024
8.1.149-nightly 162 3/24/2024
8.1.148 3,120 3/23/2024
8.1.147-nightly 175 3/19/2024
8.1.145-nightly 125 3/18/2024
8.1.137-nightly 185 3/14/2024
8.1.136-nightly 204 3/14/2024
8.1.131-nightly 175 3/13/2024
8.1.128-nightly 111 3/11/2024
8.1.126-nightly 212 3/8/2024
8.1.120-nightly 184 3/2/2024
8.1.119-nightly 131 2/29/2024
8.1.118-nightly 123 2/28/2024
8.1.115-nightly 147 2/26/2024
8.1.110-nightly 170 2/26/2024
8.1.105-nightly 173 2/18/2024
8.1.104-nightly 133 2/18/2024
8.1.103-nightly 120 2/17/2024
8.1.101-nightly 133 2/16/2024
8.1.100 2,368 2/14/2024
8.1.99-nightly 79 2/14/2024
8.1.98-nightly 186 2/13/2024
8.1.97-nightly 137 2/12/2024
8.1.94-nightly 211 2/7/2024
8.1.92-nightly 87 2/6/2024
8.1.79-nightly 105 1/31/2024
8.1.72-nightly 103 1/28/2024
8.1.71-nightly 134 1/28/2024
8.1.70-nightly 103 1/26/2024
8.1.69-nightly 103 1/26/2024
8.1.68-nightly 112 1/25/2024
8.1.67-nightly 120 1/23/2024
8.1.66-nightly 75 1/22/2024
8.1.63-nightly 95 1/22/2024
8.1.57-nightly 90 1/21/2024
8.1.50-nightly 125 1/19/2024
8.1.49-nightly 84 1/19/2024
8.1.45-nightly 93 1/15/2024
8.1.43-nightly 167 1/15/2024
8.1.41 1,524 1/12/2024
8.1.40 198 1/11/2024
8.1.37-nightly 130 1/11/2024
8.1.36-nightly 195 1/11/2024
8.1.35-nightly 137 1/11/2024
8.1.29-nightly 133 1/11/2024
8.1.28-nightly 134 1/11/2024
8.1.27-nightly 124 1/11/2024
8.1.21-nightly 148 1/10/2024
8.1.20-nightly 128 1/10/2024
8.1.14-nightly 113 1/10/2024
8.1.13-nightly 92 1/10/2024
8.1.12-nightly 125 1/10/2024
8.1.1 232 1/11/2024
8.0.1720 450 1/12/2024
8.0.1718 1,511 12/14/2023
8.0.1707 1,215 12/7/2023
8.0.1694 968 11/27/2023
8.0.1500 184 1/12/2024
8.0.0 1,583 11/15/2023
8.0.0-rc.16 164 11/1/2023
8.0.0-rc.15 118 11/1/2023
8.0.0-rc.14 114 10/27/2023
8.0.0-rc.13 122 10/23/2023
8.0.0-rc.12 175 10/15/2023
8.0.0-rc.11 257 9/12/2023
8.0.0-rc.10 293 8/25/2023
8.0.0-rc.9 148 8/25/2023
8.0.0-rc.8 240 8/11/2023
7.1.229-nightly 64 5/23/2024
7.1.228-nightly 60 5/23/2024
7.1.226-nightly 81 5/22/2024
7.1.220 141 5/20/2024
7.1.219-nightly 84 5/15/2024
7.1.218-nightly 62 5/15/2024
7.1.217-nightly 54 5/14/2024
7.1.215-nightly 61 5/13/2024
7.1.210-nightly 52 5/12/2024
7.1.209-nightly 50 5/12/2024
7.1.207-nightly 59 5/10/2024
7.1.206 261 5/9/2024
7.1.206-nightly 66 5/10/2024
7.1.204-nightly 102 5/8/2024
7.1.202-nightly 99 5/8/2024
7.1.200-nightly 103 5/2/2024
7.1.199-nightly 105 5/2/2024
7.1.198-nightly 109 5/1/2024
7.1.197-nightly 113 5/1/2024
7.1.195-nightly 159 4/30/2024
7.1.193-nightly 124 4/30/2024
7.1.192-nightly 131 4/30/2024
7.1.188-nightly 86 4/29/2024
7.1.186-nightly 85 4/29/2024
7.1.182-nightly 143 4/26/2024
7.1.180-nightly 126 4/26/2024
7.1.178-nightly 130 4/24/2024
7.1.170-nightly 250 4/12/2024
7.1.169-nightly 195 4/12/2024
7.1.161-nightly 213 4/5/2024
7.1.157-nightly 153 4/4/2024
7.1.151-nightly 175 3/29/2024
7.1.150-nightly 223 3/26/2024
7.1.149-nightly 163 3/24/2024
7.1.148 413 3/23/2024
7.1.147-nightly 153 3/19/2024
7.1.145-nightly 173 3/18/2024
7.1.137-nightly 140 3/14/2024
7.1.136-nightly 178 3/14/2024
7.1.131-nightly 191 3/13/2024
7.1.128-nightly 147 3/11/2024
7.1.126-nightly 116 3/8/2024
7.1.120-nightly 171 3/2/2024
7.1.119-nightly 128 2/29/2024
7.1.118-nightly 179 2/28/2024
7.1.115-nightly 159 2/26/2024
7.1.110-nightly 200 2/26/2024
7.1.105-nightly 105 2/18/2024
7.1.104-nightly 147 2/18/2024
7.1.103-nightly 76 2/17/2024
7.1.101-nightly 90 2/16/2024
7.1.100 351 2/14/2024
7.1.99-nightly 106 2/14/2024
7.1.98-nightly 142 2/13/2024
7.1.97-nightly 145 2/12/2024
7.1.94-nightly 94 2/7/2024
7.1.92-nightly 95 2/6/2024
7.1.79-nightly 110 1/31/2024
7.1.72-nightly 130 1/28/2024
7.1.71-nightly 107 1/28/2024
7.1.70-nightly 98 1/26/2024
7.1.69-nightly 97 1/26/2024
7.1.68-nightly 97 1/25/2024
7.1.67-nightly 84 1/23/2024
7.1.66-nightly 79 1/22/2024
7.1.63-nightly 74 1/22/2024
7.1.57-nightly 96 1/21/2024
7.1.50-nightly 76 1/19/2024
7.1.49-nightly 104 1/19/2024
7.1.45-nightly 101 1/15/2024
7.1.43-nightly 104 1/15/2024
7.1.41 214 1/12/2024
7.1.40 157 1/11/2024
7.1.37-nightly 64 1/11/2024
7.1.36-nightly 102 1/11/2024
7.1.35-nightly 136 1/11/2024
7.1.29-nightly 117 1/11/2024
7.1.28-nightly 94 1/11/2024
7.1.27-nightly 114 1/11/2024
7.1.21-nightly 116 1/10/2024
7.1.20-nightly 111 1/10/2024
7.1.14-nightly 154 1/10/2024
7.1.13-nightly 127 1/10/2024
7.1.12-nightly 98 1/10/2024
7.1.1 220 1/11/2024
7.0.1720 273 1/12/2024
7.0.1718 495 12/14/2023
7.0.1707 393 12/7/2023
7.0.1694 384 11/27/2023
7.0.1500 165 1/12/2024
7.0.0 1,028 11/15/2023
7.0.0-rc.16 174 11/1/2023
7.0.0-rc.15 80 11/1/2023
7.0.0-rc.14 148 10/27/2023
7.0.0-rc.13 92 10/23/2023
7.0.0-rc.12 193 10/15/2023
7.0.0-rc.11 546 9/12/2023
7.0.0-rc.10 239 8/25/2023
7.0.0-rc.9 116 8/25/2023
7.0.0-rc.8 194 8/11/2023
7.0.0-rc.7 881 7/18/2023
7.0.0-rc.6 154 7/17/2023
7.0.0-rc.5 151 7/16/2023
7.0.0-rc.4 171 7/10/2023
7.0.0-rc.3 158 6/7/2023
7.0.0-rc.2 99 5/30/2023
7.0.0-rc.1 82 5/28/2023
7.0.0-preview9 325 5/26/2023
7.0.0-preview8 183 5/23/2023
7.0.0-preview7 224 5/19/2023
7.0.0-preview6 290 5/5/2023
7.0.0-preview5 317 5/4/2023
7.0.0-preview4 256 4/30/2023
7.0.0-preview3 345 4/27/2023
7.0.0-preview2 259 4/25/2023
7.0.0-preview10 181 5/28/2023
7.0.0-preview1 403 4/25/2023
7.0.0-preview.11 78 5/28/2023
6.1.229-nightly 77 5/23/2024
6.1.228-nightly 60 5/23/2024
6.1.226-nightly 85 5/22/2024
6.1.220 103 5/20/2024
6.1.219-nightly 85 5/15/2024
6.1.218-nightly 65 5/15/2024
6.1.217-nightly 55 5/14/2024
6.1.215-nightly 57 5/13/2024
6.1.210-nightly 47 5/12/2024
6.1.209-nightly 50 5/12/2024
6.1.207-nightly 61 5/10/2024
6.1.206 102 5/9/2024
6.1.206-nightly 62 5/10/2024
6.1.204-nightly 102 5/8/2024
6.1.202-nightly 95 5/8/2024
6.1.200-nightly 115 5/2/2024
6.1.199-nightly 104 5/2/2024
6.1.198-nightly 115 5/1/2024
6.1.197-nightly 118 5/1/2024
6.1.195-nightly 149 4/30/2024
6.1.193-nightly 136 4/30/2024
6.1.192-nightly 120 4/30/2024
6.1.188-nightly 94 4/29/2024
6.1.186-nightly 87 4/29/2024
6.1.182-nightly 126 4/26/2024
6.1.180-nightly 134 4/26/2024
6.1.178-nightly 140 4/24/2024
6.1.170-nightly 147 4/12/2024
6.1.169-nightly 164 4/12/2024
6.1.161-nightly 176 4/5/2024
6.1.157-nightly 182 4/4/2024
6.1.151-nightly 193 3/29/2024
6.1.150-nightly 128 3/26/2024
6.1.149-nightly 179 3/24/2024
6.1.148 795 3/23/2024
6.1.147-nightly 172 3/19/2024
6.1.145-nightly 163 3/18/2024
6.1.137-nightly 177 3/14/2024
6.1.136-nightly 182 3/14/2024
6.1.131-nightly 79 3/13/2024
6.1.128-nightly 162 3/11/2024
6.1.126-nightly 179 3/8/2024
6.1.120-nightly 219 3/2/2024
6.1.119-nightly 183 2/29/2024
6.1.118-nightly 80 2/28/2024
6.1.115-nightly 173 2/26/2024
6.1.110-nightly 131 2/26/2024
6.1.105-nightly 182 2/18/2024
6.1.104-nightly 131 2/18/2024
6.1.103-nightly 100 2/17/2024
6.1.101-nightly 178 2/16/2024
6.1.100 307 2/14/2024
6.1.99-nightly 130 2/14/2024
6.1.98-nightly 135 2/13/2024
6.1.97-nightly 148 2/12/2024
6.1.94-nightly 152 2/7/2024
6.1.92-nightly 124 2/6/2024
6.1.79-nightly 94 1/31/2024
6.1.72-nightly 142 1/28/2024
6.1.71-nightly 109 1/28/2024
6.1.70-nightly 76 1/26/2024
6.1.69-nightly 129 1/26/2024
6.1.68-nightly 102 1/25/2024
6.1.67-nightly 104 1/23/2024
6.1.66-nightly 84 1/22/2024
6.1.63-nightly 89 1/22/2024
6.1.57-nightly 117 1/21/2024
6.1.50-nightly 68 1/19/2024
6.1.49-nightly 102 1/19/2024
6.1.45-nightly 100 1/15/2024
6.1.43-nightly 107 1/15/2024
6.1.41 211 1/12/2024
6.1.40 182 1/11/2024
6.1.37-nightly 113 1/11/2024
6.1.36-nightly 105 1/11/2024
6.1.35-nightly 152 1/11/2024
6.1.29-nightly 126 1/11/2024
6.1.28-nightly 127 1/11/2024
6.1.27-nightly 147 1/11/2024
6.1.21-nightly 148 1/10/2024
6.1.20-nightly 175 1/10/2024
6.1.14-nightly 181 1/10/2024
6.1.13-nightly 73 1/10/2024
6.1.12-nightly 124 1/10/2024
6.1.1 198 1/11/2024
6.0.1720 249 1/12/2024
6.0.1718 419 12/14/2023
6.0.1707 345 12/7/2023
6.0.1694 342 11/27/2023
6.0.1500 201 1/12/2024
6.0.0 6,459 11/15/2023
6.0.0-rc.16 114 11/1/2023
6.0.0-rc.15 91 11/1/2023
6.0.0-rc.14 16,004 10/27/2023
6.0.0-rc.13 64 10/23/2023
6.0.0-rc.12 122 10/15/2023
6.0.0-rc.11 148 9/12/2023
6.0.0-rc.10 2,159 8/25/2023
6.0.0-rc.9 115 8/25/2023
6.0.0-rc.8 137 8/11/2023
6.0.0-rc.7 4,792 7/18/2023
6.0.0-rc.5 358 7/16/2023
6.0.0-rc.4 150 7/10/2023
6.0.0-rc.3 101 6/7/2023
6.0.0-rc.2 102 5/30/2023
6.0.0-rc.1 86 5/28/2023
6.0.0-preview9 175 5/26/2023
6.0.0-preview8 152 5/23/2023
6.0.0-preview7 195 5/19/2023
6.0.0-preview6 221 5/5/2023
6.0.0-preview5 322 5/3/2023
6.0.0-preview4 240 4/30/2023
6.0.0-preview3 218 4/27/2023
6.0.0-preview2 299 4/25/2023
6.0.0-preview10 229 5/28/2023

For EF Core 7