Install Neo4j on Windows with a desktop installer or from a ZIP archive. Run it as a desktop or console application, or as a Windows service.
Download the version that you want from http://neo4j.com/download/.
The installer will prompt to be granted Administrator privileges. Newer versions of Windows come with a SmartScreen feature that may prevent the installer from running — you can make it run anyway by clicking "More info" on the "Windows protected your PC" screen.
If you install Neo4j using the windows installer and you already have an existing instance of Neo4j the installer will select
a new install directory by default.
If you specify the same directory it will ask if you want to upgrade.
This should proceed without issue although some users have reported a
Download the latest release from http://neo4j.com/download/.
Change directory to top-level extracted directory.
Ctrl-Cin the console.
Neo4j can also be run as a Windows service.
Install the service with
bin\neo4j install-service and start it with
Other commands available are
The Neo4j PowerShell module allows administrators to:
The PowerShell module is installed as part of the ZIP file distributions of Neo4j.
On Windows it is sometimes necessary to Unblock a downloaded zip file before you can import its contents as a module. If you right-click on the zip file and choose "Properties" you will get a dialog. Bottom-right on that dialog you will find an "Unblock" button. Click that. Then you should be able to import the module.
Running scripts has to be enabled on the system. This can for example be achieved by executing the following from an elevated PowerShell prompt:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
For more information see About execution policies.
The powershell module will display a warning if it detects that you do not have administrative rights.
The module file is located in the bin directory of your Neo4j installation, i.e. where you unzipped the downloaded file. For example, if Neo4j was installed in C:\Neo4j then the module would be imported like this:
This will add the module to the current session.
Once the module has been imported you can start an interactive console version of a Neo4j Server like this:
To stop the server, issue
Ctrl-C in the console window that was created by the command.
Once the module is imported you can query the available commands like this:
Get-Command -Module Neo4j-Management
The output should be similar to the following:
CommandType Name Version Source ----------- ---- ------- ------ Function Invoke-Neo4j 3.3.0 Neo4j-Management Function Invoke-Neo4jAdmin 3.3.0 Neo4j-Management Function Invoke-Neo4jBackup 3.3.0 Neo4j-Management Function Invoke-Neo4jImport 3.3.0 Neo4j-Management Function Invoke-Neo4jShell 3.3.0 Neo4j-Management
The module also supports the standard PowerShell help commands.
To see examples for a command, do like this:
Get-Help Invoke-Neo4j -examples
List of available commands:
Current status of the Neo4j service:
Install the service with verbose output:
Invoke-Neo4j install-service -Verbose
Available commands for administrative tasks:
The module commands support the common PowerShell parameter of