Skip to content

jexp/boltsh

Repository files navigation

boltsh

A Bolt Cypher Shell example built with oclif the "open source cli framework" from SalesForce/Heroku.

Version CircleCI Appveyor CI Codecov Downloads/week License

Usage

Flags:

  • -a bolt-address, .e.g -a bolt://localhost:7687
  • -u username, e.g. -u neo4j
  • -p password, e.g. -p "xJMa2iacc}HGqsbjpuTaXpwF"
  • -t table mode

Argument - Cypher Query

Just pass your Cypher query in double quotes, you can use single quotes within the query.

boltsh -p "xJMa2iacc}HGqsbjpuTaXpwF" -t "MATCH (n:Person)-->(m:Movie) RETURN n.name as person, n.born, collect(m.title) as movies LIMIT 10"

.-------------------------------------------------------------------------------------.
|       n.name       | n.born |                        movies                         |
|--------------------|--------|-------------------------------------------------------|
| Diane Keaton       | 1946   | Something's Gotta Give                                |
| Christina Ricci    | 1980   | Speed Racer                                           |
| Robert Zemeckis    | 1951   | Cast Away,The Polar Express                           |
| Renee Zellweger    | 1969   | Jerry Maguire                                         |
| Brooke Langton     | 1970   | The Replacements                                      |
| Kiefer Sutherland  | 1966   | A Few Good Men,Stand By Me                            |
| Greg Kinnear       | 1963   | As Good as It Gets,You've Got Mail                    |
| Ed Harris          | 1950   | Apollo 13                                             |
| Bruno Kirby        | 1949   | When Harry Met Sally                                  |
| Laurence Fishburne | 1961   | The Matrix,The Matrix Reloaded,The Matrix Revolutions |
'-------------------------------------------------------------------------------------'
Returned 10 row(s) in 16 ms.

References