cypher-shell

Interactive command-line shell for querying Neo4j databases with Cypher

brewmacoslinux
Try with needOr install directly
Source

About

Command-line shell where you can execute Cypher against Neo4j

Commands

cypher-shell

Examples

connect to a neo4j database and run queries interactively$ cypher-shell -a neo4j://localhost:7687 -u neo4j -p password
execute a single cypher query and exit$ cypher-shell -a neo4j://localhost:7687 -u neo4j -p password 'MATCH (n) RETURN n LIMIT 10;'
run cypher commands from a file$ cypher-shell -a neo4j://localhost:7687 -u neo4j -p password < queries.cypher
connect to neo4j with custom port and output format$ cypher-shell -a neo4j://localhost:7689 -u neo4j -p password --format plain
test database connection without running queries$ cypher-shell -a neo4j://localhost:7687 -u neo4j -p password -c 'RETURN 1;'