Skip to content

Commit

Permalink
Update the command for running cypher shell in a pod to access a clus…
Browse files Browse the repository at this point in the history
…ter (#2169)
  • Loading branch information
renetapopova authored Mar 6, 2025
1 parent f8ee272 commit 98418ae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ You run `cypher-shell` in a new pod and point it directly to one of the servers.
+
[source, shell, subs="attributes"]
----
kubectl run --rm -it --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \
-- cypher-shell -a "neo4j://server-3.default.svc.cluster.local:7687" -u neo4j -p "my-password"
kubectl run --rm -it --env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \
-- cypher-shell -a "neo4j://server-3.neo4j.svc.cluster.local:7687" -u neo4j -p "my-password"
----
+
[source, result, subs="attributes", role=nocopy]
----
If you don't see a command prompt, try pressing enter.
Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.default.svc.cluster.local:7687 as user neo4j.
Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.neo4j.svc.cluster.local:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
----
Expand Down

0 comments on commit 98418ae

Please sign in to comment.