GrapheneDB Blog

Updates from the GrapheneDB team

Meet Cycli: The Best CLI Client for Neo4j

cycli - Query and update your Neo4j database from the command line

GrapheneDB operates the largest fleet of Neo4j databases in the cloud. As a result, we talk to a wide variety of customers every day, all with very different needs. One of the most common questions we receive across the board is how to query Neo4j from the command line.

You may already know that Neo4j ships with a CLI tool called neo4j-shell. While neo4j-shell might work fine locally, it can’t be used to connect to public-facing Neo4j instances that have been secured.

Luckily, there is a great tool called cycli that allows you to connect securely to remote servers using the Neo4j REST endpoint.

cycli output

Besides being able to connect to remote servers securely using authentication credentials and SSL, we’re big fans of cycli due to the following killer features:

  • Syntax highlighting colors that emulate the Neo4j browser, making it easy for neo4j users to understand and easily catch errors.
  • Smart auto-completion that not only suggests Cypher keywords, but also node labels, relationship types and properties based on your current dataset.

When customers ask us for recommendations on how to best query Neo4j on the command line, we always recommend cycli — it only made sense that we incorporate cycli into our product somehow to make things easier for our customers.

We’re excited to announce that we have now included a direct snippet for cycli in the GrapheneDB Connection UI, so you can easily leverage the power of cycli with GrapheneDB.


More about cycli

cycli is a CLI tool built by Nicole White, a data scientist at Neo Technology, who is also the maintainer of the R driver for Neo4j. cycli is implemented in Python and uses Nigel Small’s Py2neo to connect to Neo4j.

cycli can be installed using pip package manager:

$ pip install cycli

View cycli on Github.

If you’re interested in knowing more, Nicole published a great blog post, explaining how she implemented the smart-autocompletion feature using Markov chains. You can read it here. Nicole also recently made an update to cycli, you can read more about it here.