Neo4j CLI tool
The Neo4j CLI tool is a tool for managing a Neo4j database server. It is a command-line tool that is installed as part of the product and can be executed with a number of commands. Neo4j CLI tool is located in the bin directory.
Syntax and commands
General synopsis
The neo4j
tool has the following general synopsis:
neo4j <command>
Available commands
Command | Description |
---|---|
|
Start server in console. |
|
Start server as a daemon. |
|
Stop the server daemon. |
|
Restart the server daemon. |
|
Get the status of the server. |
|
Print version information and exit. |
|
Display help information about the specified command. For example, running Usage: Neo4j start [--expand-commands] [--verbose] Start server as a daemon. --expand-commands Allow command expansion in config value evaluation. --verbose Prints additional information. |
Command expansion can be enabled by adding a customised script to the neo4j.conf file, and then including the For more information, see Command expansion. |
Environment variables
Neo4j CLI tool can also use the following environment variables:
Environment variable | Description |
---|---|
|
Set to anything to enable debug output. |
|
Neo4j home directory. |
|
Path to the directory that contains neo4j.conf. |
|
Set JVM maximum heap size during command execution. Takes a number and a unit, for example, 512m. |
|
Additional JVM arguments.
Refer to JVM documentation about the exact format.
This variable is incompatible with |
By default, |