Chapter 7. Neo4j Shell

Table of Contents

7.1. Starting the shell
7.1.1. Enabling the remote shell server
7.1.2. Connecting to a remote shell server
7.1.3. Pointing the shell to a path
7.1.4. Read-only mode
7.1.5. Run a command and then exit
7.2. Passing options and arguments
7.3. Enum options
7.4. Filters
7.5. Node titles
7.6. How to use (individual commands)
7.6.1. Current node/relationship and path
7.6.2. Listing the contents of a node/relationship
7.6.3. Creating nodes and relationships
7.6.4. Setting, renaming and removing properties
7.6.5. Deleting nodes and relationships
7.6.6. Environment variables
7.6.7. Executing groovy/python scripts
7.6.8. Traverse
7.6.9. Indexing
7.7. Extending the shell: Adding your own commands

Neo4j shell is a command-line shell for browsing the graph, much like how the Unix shell along with commands like cd, ls and pwd can be used to browse your local file system. It consists of two parts:

It’s a nice tool for development and debugging. This guide will show you how to get it going!