Accessing Neo4j from the command line using the Neo4j shell

Often, you will find yourself in the need of firing simple Neo4j operations, either to create a node or delete a node, query the total number of nodes, or to poke into the Neo4j graph database. With Neo4j, this can easily be done through the command-line interface.

Neo4j can also be accessed from the command line like the Unix shell. Although it is less likely that this mode is going to be used in production, it's very handy when it comes to development and debugging. In this recipe and the next recipe, we will explore the two ways to connect to Neo4j from the command-line interface, which are using the Neo4j shell and curl.

In this recipe, we will learn how to connect to Neo4j from the ...

Get Neo4j Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.