A CLI tool for working with Azure Cosmos DB.
To install the tool run the following command.
dotnet tool install --global Mumby0168.Cosmology
You can then see what the tool offers by running.
cosmology --help
There are two ways to give Cosmology a connection.
The environment variable that cosmology uses is called COSMOLOGY_COSMOS_ACCOUNT_CONNECTION_STRING
.
You can set this in MacOs with the following command.
export COSMOLOGY_COSMOS_ACCOUNT_CONNECTION_STRING="my-connection-string"
You can un-set this using
unset COSMOLOGY_COSMOS_ACCOUNT_CONNECTION_STRING
If no environment variable can be found then the tool will look in a file named appsettings.json
for the connection string. This is stored next to the .dll
for the tools.