dotnet-dbinfo
1.4.0
dotnet tool install --global dotnet-dbinfo --version 1.4.0
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-dbinfo --version 1.4.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-dbinfo&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-dbinfo --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-dbinfo
A simple cross-platform command-line tool for get useful database information (in json format).
Get started
Download the .NET Core SDK 2.1.300 or newer. Once installed, run this command:
dotnet tool install -g dotnet-dbinfo
Or update to the latest version:
dotnet tool update -g dotnet-dbinfo
Usage
Microsoft SQL Server
Usage: dotnet dbinfo sqlserver server database user password
Arguments:
server Name of the database server
database Name of the database instance
user Login name of the user
password Password of the user
Example:
dotnet dbinfo sqlserver .\SQLEXPRESS master sa Pass1234
Azure SQL
Usage: dotnet dbinfo sqlazure server database user password
Arguments:
server Name of the database server
database Name of the database instance
user Login name of the user
password Password of the user
Example:
dotnet dbinfo sqlazure .\SQLEXPRESS master sa Pass1234
AWS DynamoDb
Usage: dotnet dbinfo dynamodb regionendpoint [accesskey] [secretkey]
Arguments:
regionendpoint Region (for example: us-east-1)
accesskey/secretkey (OPTIONAL) If not set, tool uses AWS credentials profile file on your local system
Example:
dotnet dbinfo dynamodb us-east-1
Azure CosmosDb
Usage: dotnet dbinfo cosmosdb endpointUri primaryKey database
Arguments:
endpointUri Your endpoint URL from the Portal
primaryKey Your primary key
database Name of the database
Example:
dotnet dbinfo cosmosdb https://test.documents.azure.com:443/ Y7Tr6jZy10Jh6FOo4hCP4LR128ekLOczs4a5fQlEjH0TehgWfOdilWp2GvyQ1pmDxP3zQFXF11CclKgsg9vMz4Q== ToDoList
MongoDb
Usage: dotnet dbinfo mongodb host:port database user password
Arguments:
host:port Host and port of the MongoDb server
database Name of the database
user Login name of the user
password Password of the user
Example:
dotnet dbinfo mongodb localhost:27017 my_database my_user password123
Hint: The user must have the necessary permissions for the database!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 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.