@phandal/azsql
v1.0.2
Published
Query cosmos db from the cli
Readme
azsql
Query Azure Cosmos DB from the command line!
Pre-requisites
The az cli is used to login to your azure account.
This allows azsql to use the DefaultCredentials to authenticate with azure.
Installation
npm install -g @phandal/azsqlUsage
The query is read from stdin. You can either pipe in a file, use a heredoc, or type the query followed by <CTRL-D> to signal EOF.
az sql -a <account-name> -d <database-name> -c <container-name>