Search code examples
shellneo4jgraphml

Export graphml from neo4j community 2.2 using shell tools 2.2


I downloaded the latest version shell-tools_2.2. I didnt find a lib directory but I extracted the the files to the bin folder. Followed all the remaing instructions shown here. when I run neo4j-shell and try to export graphml I get the following error

neo4j-sh (?)$ export-graphml -o out.graphml match n return n

Unknown command 'export-graphml'

neo4j-sh (?)$ help

Available commands: alias begin cd commit create cypher dbinfo drop dump env exp
lain export gsh help index jsh load ls man match merge mknode mkrel mv optional
paths planner profile pwd return rm rmnode rmrel rollback schema set start trav
unwind using with

Also tried Mel18's syntax and had the same affect. The help command doesnt seem to show any additional commands regarding export-graphml. What can you suggest?

Neo4j community 2.2.0 Win 7


Solution

  • Did you download the zip manually or use the curl command? I found when I downloaded the zip manually the lib files weren't in there. After using curl, I needed to chmod so the new .jar files were executable. Hope that helps.