Skip to main content

Neo4j CLI

Project description

Neo4j CLI

Installation

Prebuilt archives (recommended)

Download the archive for your OS/arch from the releases page and extract the neo4j-cli binary.

npm

npm i -g @neo4j-labs/cli

Installs a small Node wrapper plus a prebuilt neo4j-cli binary matching your OS and CPU. pnpm add -g @neo4j-labs/cli and yarn global add @neo4j-labs/cli work the same way. Prereleases via npm i -g @neo4j-labs/cli@alpha (also @beta, @rc, @next). See distribution/npm/cli/README.md for the supported platform matrix.

Note: To install a pre-release, the version must be specified for pip, pipx etc.. This is achieved by adding == immediately after neo4j-cli with the version you want. For example, pipx install neo4j-cli==0.1.0a6 will install 0.1.0a6 of Neo4j CLI

pip

pip install neo4j-cli

pipx

pipx install neo4j-cli

uv

uv tool install neo4j-cli

uvx

uvx will install and execute neo4j-cli. This means that you must include the commands you want to use with uvx

uvx -i neo4j-cli YOUR_COMMANDS

Check the installation by running neo4j-cli --help

Usage

Extract the executable to a directory of your choosing.

Create Aura API Credentials in your Account Settings, and note down the client ID and secret.

Add these credentials into the CLI with a name of your choosing:

./neo4j-cli aura credential add --name "Aura API Credentials" --client-id <client-id> --client-secret <client-secret>

This will add and set the credential as the default credential for use.

You can then, for example, list your instances in a table format:

./neo4j-cli aura instance list --format table

If you would rather just type neo4j-cli then move the neo4j-cli binary into the file path of your computer.
Windows:

move neo4j-cli.exe c:\windows\system32

Mac:

sudo mv neo4j-cli /usr/local/bin

To see all of the available commands:

./neo4j-cli

Help for each command is accessed by using it without any flags or options. For example, to see help creating an instance:

./neo4j-cli aura instance create

Querying Neo4j

neo4j-cli query runs Cypher against any Neo4j database via the Bolt protocol. Cypher comes from the positional argument or piped stdin.

./neo4j-cli query 'RETURN 1 AS n'
echo 'MATCH (n) RETURN count(n)' | ./neo4j-cli query

Connection settings are resolved with this precedence (highest first): flag → env var → .env file (auto-discovered by walking up from cwd) → built-in default.

Setting Flag Env var Default
URI --uri NEO4J_URI neo4j://localhost:7687
Username --username NEO4J_USERNAME neo4j
Password --password NEO4J_PASSWORD prompted on TTY
Database --database NEO4J_DATABASE neo4j

http:// and https:// URIs are auto-rewritten to neo4j://<host>:7687 and neo4j+s://<host>:7687 respectively (path/query stripped). For self-signed certs use neo4j+ssc://.

Pass parameters with --param key=value (repeatable). Values that parse as JSON are typed; everything else is a string:

./neo4j-cli query 'MATCH (p:Person {name:$name}) RETURN p' --param name=Alice
./neo4j-cli query 'RETURN $ids' --param 'ids=[1,2,3]'
echo 'MATCH (p:Person {name:$name}) RETURN p' | ./neo4j-cli query --param name=Alice

Output is a table by default; pass --format json for a stable envelope (columns, rows, truncated, arrays_truncated). When stdout is not a terminal (piped or redirected), --format defaults to json. Applies to both query and :schema. Large results are capped at 100 rows and arrays inside cells at 100 items — tune with --max-rows / --truncate-arrays-over (0 = unlimited).

Schema introspection:

./neo4j-cli query :schema

Write operations

Write commands require --rw. neo4j-cli query runs EXPLAIN first when --rw is absent and blocks mutating Cypher before execution.

./neo4j-cli aura instance delete <id> --rw
./neo4j-cli config set telemetry false --rw
./neo4j-cli query 'CREATE (:Person {name:"Alice"})' --rw

Agent skills

neo4j-cli ships an embedded skill bundle (SKILL.md + per-subcommand references) that teaches AI coding agents how to drive the CLI. skill install drops that bundle into the supported agents' skill directories so the agent picks it up on next run.

Supported agents:

  • Claude Code
  • Cursor
  • Windsurf
  • Copilot
  • Gemini CLI
  • Cline
  • Codex
  • Pi
  • OpenCode
  • Junie

Install into every detected agent (or pass an agent name to target one):

./neo4j-cli skill install
./neo4j-cli skill install claude-code

List supported agents and per-agent install state:

./neo4j-cli skill list

Check installed bundles for version drift against the running binary:

./neo4j-cli skill check

Remove the installed bundle (idempotent):

./neo4j-cli skill remove
./neo4j-cli skill remove claude-code

Beta features (commands gated by AuraBetaEnabled, e.g. dataapi, import, deployment) are not included in the generated bundle — the bundle reflects the default-config command surface.

Feedback / Issues

Please use GitHub issues to provide feedback and report any issues that you have encountered.

Building locally

Clone the repository and run:

make build

This produces bin/neo4j-cli. To run without building:

make run-neo4j

Developing and contributing

Read CONTRIBUTING.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

neo4j_cli-0.1.0a7-py3-none-win_arm64.whl (13.3 MB view details)

Uploaded Python 3Windows ARM64

neo4j_cli-0.1.0a7-py3-none-win_amd64.whl (14.5 MB view details)

Uploaded Python 3Windows x86-64

neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_x86_64.whl (14.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_aarch64.whl (13.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

neo4j_cli-0.1.0a7-py3-none-macosx_11_0_arm64.whl (13.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

neo4j_cli-0.1.0a7-py3-none-macosx_10_9_x86_64.whl (14.6 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-win_arm64.whl.

File metadata

  • Download URL: neo4j_cli-0.1.0a7-py3-none-win_arm64.whl
  • Upload date:
  • Size: 13.3 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 b4d02fb260266f59f639af01d64d0a7725457b168d239e18b62b68b396e0320e
MD5 a6b33051391a273ad3ac78063386092f
BLAKE2b-256 8c8cdd3a0d79d3ac516e0beb467b1ec323b32d0cd5a568fe818a22982ea1f47e

See more details on using hashes here.

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-win_amd64.whl.

File metadata

  • Download URL: neo4j_cli-0.1.0a7-py3-none-win_amd64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5103829fd5c356ef3728ee015af47014e9c81b77b87073af06a9fc6ca8cc4f3c
MD5 f483d9ef2a8900b541b4ab0b284a6ed4
BLAKE2b-256 d801644e02774c6c03aec08117172b88bd5e88f341dadea02d55a54730703f07

See more details on using hashes here.

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 bae3312878f76ec574ebc4f1e1ba87961958f9126b11f22d3ea970a7efeee9c1
MD5 d54b53070eabe7f740bdaf9e6c419ffd
BLAKE2b-256 689339b267a88ee0c629a285fbbb65605ddc9f8e0c463c5c7cd7ff0c1c228554

See more details on using hashes here.

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f0aafb115f50520ec1140f40e85b3a9e0266870424078940388c4818ea849f1e
MD5 1edbd44854f5f1cdfb6d16196e1b3bce
BLAKE2b-256 0468a741a2f63e86399fb465336ba77ea16c2b6bfec8c41993b45350aba3d5b3

See more details on using hashes here.

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3229465676138b32d8b53dcc11234c634f86841ec55586b8eb1b22c6fb78a348
MD5 5c44ce1c91787322723f4d7efe3d6e97
BLAKE2b-256 777bf42e2dc93dd9f1177fb63a1785d16f31f538e8e95993202bd9518e5356ae

See more details on using hashes here.

File details

Details for the file neo4j_cli-0.1.0a7-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for neo4j_cli-0.1.0a7-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f143b98567bfede40b61fb2a27a986ecae400c2998cd614396ac8c88142054ae
MD5 8bacc92d8dba06d8ee1d0d4ca8e3aed6
BLAKE2b-256 ac0468e3ea87c5a60b755ad2827d53a8da4b307419ac1e3d72f4be984fac1184

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page