![]() |
VOOZH | about |
dotnet tool install --global linq2db.cli --version 6.3.0
dotnet new tool-manifestif you are setting up this repo
dotnet tool install --local linq2db.cli --version 6.3.0
#tool dotnet:?package=linq2db.cli&version=6.3.0
nuke :add-package linq2db.cli --version 6.3.0
NOTE: This is not a library you could reference from your project, but command line utility, installed using
dotnet toolcommand (see installation notes).
See this page for more detailed help.
Requires .NET 8 or higher.
Install as global tool:
dotnet tool install -g linq2db.cli
Update:
dotnet tool update -g linq2db.cli
General information on .NET Tools could be found here
The tool ships as per-RID packages (win-x64, win-x86, win-arm64, plus Linux + macOS variants). A bare dotnet tool install -g linq2db.cli picks one based on your SDK architecture (usually x64).
The following providers REQUIRE a 32-bit process — install the win-x86 variant if you use any of them:
Microsoft.Jet.OLEDB (legacy Access .mdb databases — Jet is 32-bit-only)Microsoft.ACE.OLEDB.12.0 / .16.0 when matching 32-bit Microsoft Office is installed (provider bitness must match Office bitness)Install the x86 variant explicitly:
dotnet tool install -g linq2db.cli --arch x86
A single tool ID can only have one architecture installed under -g; reinstalling replaces. To keep both x86 and x64 available, install each to a separate path and manage PATH order yourself:
dotnet tool install linq2db.cli --tool-path %USERPROFILE%\tools\x64 --arch x64
dotnet tool install linq2db.cli --tool-path %USERPROFILE%\tools\x86 --arch x86
To invoke tool use dotnet-linq2db <PARAMETERS> or dotnet linq2db <PARAMETERS> command.
Available commands:
dotnet linq2db help: prints general helpdotnet linq2db help scaffold: prints help for scaffold commanddotnet linq2db scaffold <options>: performs database model scaffoldingdotnet linq2db template [-o template_path]: creates base T4 template file for scaffolding customization codeFor list of available options, use dotnet linq2db help scaffold command.
This command uses minimal set of options, required for scaffolding (database provider and connection string) and generates database model classes in current folder.
dotnet linq2db scaffold -p SQLite -c "Data Source=c:\Databases\MyDatabase.sqlite"
This command demonstrates use of configuration file with scaffold options combined with command line options.
dotnet linq2db scaffold -i database.json -c "Data Source=c:\Databases\MyDatabase.sqlite"
database.json file:
{
"general": {
"provider": "SQLite",
"connection": "Data Source=c:\\Databases\\TestDatabase.sqlite",
"output": "c:\\MyProject\\DbModel",
"overwrite": true
}
}
Here you can see that connection string passed using both command line and json config file. In such cases option passed in command line takes precedence.
Scaffold configs (response files) are convenient in many ways:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.3.0 | 659 | 5/18/2026 |
| 6.2.1 | 4,201 | 3/17/2026 |
| 6.2.0 | 566 | 3/12/2026 |
| 6.1.0 | 8,356 | 12/15/2025 |
| 6.0.0 | 1,403 | 12/5/2025 |
| 6.0.0-rc.3 | 412 | 8/14/2025 |
| 6.0.0-rc.2 | 157 | 7/31/2025 |
| 6.0.0-rc.1 | 205 | 7/17/2025 |
| 6.0.0-preview.4 | 2,619 | 3/26/2025 |
| 6.0.0-preview.3 | 410 | 1/28/2025 |
| 6.0.0-preview.2 | 299 | 1/22/2025 |
| 6.0.0-preview.1 | 659 | 6/17/2024 |
| 5.4.1.9 | 3,643 | 10/17/2025 |
| 5.4.1 | 59,380 | 4/7/2024 |
| 5.4.0 | 20,403 | 2/20/2024 |
| 5.3.2 | 5,094 | 10/18/2023 |
| 5.3.1 | 672 | 10/16/2023 |
| 5.3.0 | 814 | 10/12/2023 |
| 5.2.2 | 6,513 | 6/8/2023 |