cypher-shell icon indicating copy to clipboard operation
cypher-shell copied to clipboard

Feature request: run a script from a file a la \i in psql, etc.

Open sammyjava opened this issue 8 years ago • 2 comments

I'd like to be able to sit at the cypher-shell prompt and run scripts from files, something like

neo4j>\i my-wonderful-script.cypher

Former (?) RDBMS peeps like me are very used to doing so in the psql, mysql text clients.

sammyjava avatar Jun 09 '17 19:06 sammyjava

As this feature already exists in neo4j-client, when/if support for this is added to cypher-shell, it would be good to use :source <file> as the command name for compatibility.

cleishm avatar Jun 10 '17 08:06 cleishm

Would really love to be able to do something like cypher-shell -f some-script.cypher

I've built cypher shell into a container, and want to run it as a Job in Kubernetes to bootstrap my indexes. I'm not totally certain yet how I can pipe a file into a running Pod

davisford avatar Oct 02 '19 17:10 davisford