Thursday, December 10, 2020

What is Cypher Shell?

Cypher Shell is a command-line tool that comes with the Neo4j installation. It can also be downloaded from Neo4j Download Center and installed separately.


Cypher Shell CLI is used to run queries and perform administrative tasks against a Neo4j instance. By default, the shell is interactive, but you can also use it for scripting, by passing cypher directly on the command line or by piping a file with cypher statements (requires PowerShell on Windows). It communicates via the Bolt protocol.



Below is the syntax


cypher-shell [-u USERNAME, --username USERNAME]

              [cypher]

              [-h, --help]

              [--fail-fast]

              [--fail-at-end]

              [--format]

              [--debug]

              [--non-interactive]

              [-v, --version]

              [-a ADDRESS, --address ADDRESS]

              [-p PASSWORD, --password PASSWORD]

              [--encryption]

              [-d DATABASE, --database DATABASE]

              [--P PARAM, --param PARAM]

              [--sample-rows SAMPLE-ROWS]

              [--wrap]

              [--driver-version]

              [-f FILE, --file FILE]


 

$neo4j-home> bin/cypher-shell -u neo4j -p <password>



References:

https://neo4j.com/docs/operations-manual/current/tools/cypher-shell/#:~:text=Cypher%20Shell%20is%20a%20command,comes%20with%20the%20Neo4j%20installation.&text=Cypher%20Shell%20CLI%20is%20used,tasks%20against%20a%20Neo4j%20instance.


No comments:

Post a Comment