LinuxCommandLibrary

cypher-shell

Open an interactive session and run Cypher queries against a Neo4j instance.

TLDR

Connect to a local instance on the default port (neo4j://localhost:7687)

$ cypher-shell
copy


Connect to a remote instance
$ cypher-shell --address neo4j://[host]:[port]
copy


Connect and supply security credentials
$ cypher-shell --username [username] --password [password]
copy


Connect to a specific database
$ cypher-shell --database [database_name]
copy


Execute Cypher statements in a file and close
$ cypher-shell --file [path/to/file.cypher]
copy


Enable logging to a file
$ cypher-shell --log [path/to/file.log]
copy


Display help
$ cypher-shell --help
copy

Copied to clipboard