From 785eb9290bbd0bfe18b24764aae48cbaddcc5a49 Mon Sep 17 00:00:00 2001 From: Martin O'Hanlon Date: Tue, 18 Jun 2024 08:59:51 +0100 Subject: [PATCH] cypher-shell: add page (#13001) * cypher-shell: add page --------- Co-authored-by: spageektti --- pages/common/cypher-shell.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages/common/cypher-shell.md diff --git a/pages/common/cypher-shell.md b/pages/common/cypher-shell.md new file mode 100644 index 0000000000..5d5bf5ba71 --- /dev/null +++ b/pages/common/cypher-shell.md @@ -0,0 +1,33 @@ +# cypher-shell + +> Open an interactive session and run Cypher queries against a Neo4j instance. +> See also: `neo4j-admin`, `mysql`. +> More information: . + +- Connect to a local instance on the default port (`neo4j://localhost:7687`): + +`cypher-shell` + +- Connect to a remote instance: + +`cypher-shell --address neo4j://{{host}}:{{port}}` + +- Connect and supply security credentials: + +`cypher-shell --username {{username}} --password {{password}}` + +- Connect to a specific database: + +`cypher-shell --database {{database_name}}` + +- Execute Cypher statements in a file and close: + +`cypher-shell --file {{path/to/file.cypher}}` + +- Enable logging to a file: + +`cypher-shell --log {{path/to/file.log}}` + +- Display help: + +`cypher-shell --help`