mumby0168 / Cosmology

A CLI tool for working with Azure Cosmos DB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cosmology

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

Setting a connection string

There are two ways to give Cosmology a connection.

Environment Variable (recommended)

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

Using the configuration file

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.

About

A CLI tool for working with Azure Cosmos DB.

License:MIT License


Languages

Language:C# 100.0%