
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
raven-shell
Advanced tools
Command line shell for RavenDB (inspired by the MongoDB shell)
The RavenDB studio is a Silverlight based web application. Unfortunately, it crashes on every virtual machine I have tried (Virtual Box, VM Ware Fusion). I also tend to use a Mac most of the time, so it would be nice to be able to access RavenDB via a Mac that does not have Silverlight. It would also be nice to be able to use a command-line interface to do work with RavenDB.
Luckily, RavenDB has an excellent HTTP API, so this console application was written against that API, using the strong networking abilities of Node.js and its REPL (Read-Eval-Print-Loop). Node.js is also natively JavaScript, so working with JSON documents in RavenDB seems a natrual fit.
$ npm install raven-shell -g
...
$ raven
RavenDB shell
> .store
Using datastore at: http://localhost:8080
> .store http://someravendb.myorg.com:8080
Using datastore at: http://someravendb.myorg.com:8080
> .count Albums
246
> .docs Users
[ { firstName: 'Johnny',
'@metadata':
{ 'Raven-Entity-Name': 'Users',
'@id': '1e0c2a96-2d3e-4fb9-89be-b138e8404e95',
'Temp-Index-Score': 4.951243877410889,
'Last-Modified': '2012-05-12T17:56:41.8740000',
'@etag': '00000000-0000-0800-0000-000000000008',
'Non-Authoritative-Information': false } },
{ id: 'users/frank',
firstName: 'Frank',
lastName: 'Jenkins',
'@metadata':
{ 'Raven-Entity-Name': 'Users',
'@id': 'users/frank',
'Temp-Index-Score': 4.951243877410889,
'Last-Modified': '2012-05-12T21:06:41.5600000',
'@etag': '00000000-0000-0800-0000-00000000000a',
'Non-Authoritative-Information': false } },
{ id: 'users/leeroy',
firstName: 'Leeroy',
'@metadata':
{ 'Raven-Entity-Name': 'Users',
'@id': 'users/leeroy',
'Temp-Index-Score': 4.951243877410889,
'Last-Modified': '2012-05-12T22:44:54.7630000',
'@etag': '00000000-0000-0800-0000-00000000000c',
'Non-Authoritative-Information': false } } ]
> .count Users
3
> .create Users { id: 'users/mamma', firstName: 'Mamma', lastName: 'Jenkins'}
{ Key: 'users/mamma',
ETag: '00000000-0000-0900-0000-000000000002' }
>_.Key
'users/mamma'
> .find {firstName: 'Leeroy'}
[ { id: 'users/leeroy',
firstName: 'Leeroy',
'@metadata':
{ 'Raven-Entity-Name': 'Users',
'@id': 'users/leeroy',
'Temp-Index-Score': 4.951243877410889,
'Last-Modified': '2012-05-12T22:44:54.7630000',
'@etag': '00000000-0000-0800-0000-00000000000c',
'Non-Authoritative-Information': false } } ]
> var leeroy = _[0]
undefined
> leeroy
{ id: 'users/leeroy',
firstName: 'Leeroy',
'@metadata':
{ 'Raven-Entity-Name': 'Users',
'@id': 'users/leeroy',
'Temp-Index-Score': 4.951243877410889,
'Last-Modified': '2012-05-12T22:44:54.7630000',
'@etag': '00000000-0000-0800-0000-00000000000c',
'Non-Authoritative-Information': false } }
> .read users/mamma
{ id: 'users/mamma',
firstName: 'Mamma',
lastName: 'Jenkins' }
> .delete users/mamma
> .read users/mamma
[Error: Error: 404 - ]
> .exit
$
FAQs
A command-line interface to RavenDB
The npm package raven-shell receives a total of 0 weekly downloads. As such, raven-shell popularity was classified as not popular.
We found that raven-shell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.