
一个以代理为核心的CLI显示选定的Neo4j功能
概览
这是一个早期阶段、社区驱动的工具,不属于Neo4j支持的产品线。这是一个很好的实验方式,但不包含Neo4j的标准支持或保修承诺。详见Neo4j Labs免责声明。 在交互式终端中,安装程序询问是否安装代理技能捆绑包。对于无人值守安装,选择加入前置 NEO4J_CLI_AUTO_INSTALL_SKILL=1,或选择退出时先加 =0——npm 后安装和 Homebrew 公式都遵循相同的 env var。 - : NEO4J_CLI_AUTO_INSTALL_SKILL=1 brew install neo4j-labs/tap/neo4j-cli(仅稳定版;预发布通过npm/PyPI发布)。- : NEO4J_CLI_AUTO_INSTALL_SKILL=1 npm i -g @neo4j-labs/cli(也支持 pnpm add -g / yarn global add)。预发布版:@alpha、@beta、@rc、@next。平台矩阵:distribution/npm/cli/README.md。- : pip 安装 neo4j-cli,pipx 安装 neo4j-cli,或 uv 工具安装 neo4j-cli。一次性:uvx -i neo4j-cli 。用 == 标记预发布,例如 pipx 安装 neo4j-cli==0.1.0a6。
概述(AI 翻译)
Neo4j 实验室
这是一个早期阶段、社区驱动的工具,不属于Neo4j支持的产品线。这是一个很好的实验方式,但不包含Neo4j的标准支持或保修承诺。详见Neo4j Labs免责声明。
安装
在交互式终端中,安装程序询问是否安装代理技能包。对于无人值守安装,前置NEO4J_CLI_AUTO_INSTALL_SKILL=1以选择加入,=0]以选择退出——相同的env变量被npm安装后和Homebrew公式遵守。
请通过neo4j-cli --help确认。
替代方案
- 自制内容:
NEO4J_CLI_AUTO_INSTALL_SKILL=1 brew install neo4j-labs/tap/neo4j-cli(仅限稳定版;预发布通过npm/PyPI发布)。 - npm:
NEO4J_CLI_AUTO_INSTALL_SKILL=1 npm i -g @neo4j-labs/cli(也适用于pnpm add -g/yarn global add)。预发布版:@alpha、@beta、@rc、@next。平台矩阵:distribution/npm/cli/README.md。 - PyPI:
pip install neo4j-cli、pipx install neo4j-cli或uv tool install neo4j-cli。一次性:uvx -i neo4j-cli。用==标记预释放,例如pipx install neo4j-cli==0.1.0a6。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Neo4j CLI
Neo4j Labs
This is an early-stage, community-driven tool and not part of Neo4j’s supported product lineup. It’s a great way to experiment, but it doesn’t come with Neo4j’s standard support or warranty commitments. See the Neo4j Labs disclaimer.
Installation
curl -sSfL https://neo4j.sh/install.sh | bash
In an interactive terminal the installer asks whether to install the agent-skill bundle. For unattended installs prepend NEO4J_CLI_AUTO_INSTALL_SKILL=1 to opt in or =0 to opt out — the same env var is honoured by the npm postinstall and Homebrew formula.
Verify with neo4j-cli --help.
Alternatives
- Homebrew:
NEO4J_CLI_AUTO_INSTALL_SKILL=1 brew install neo4j-labs/tap/neo4j-cli(stable releases only; prereleases ship via npm/PyPI). - npm:
NEO4J_CLI_AUTO_INSTALL_SKILL=1 npm i -g @neo4j-labs/cli(also works withpnpm add -g/yarn global add). Prereleases:@alpha,@beta,@rc,@next. Platform matrix:distribution/npm/cli/README.md. - PyPI:
pip install neo4j-cli,pipx install neo4j-cli, oruv tool install neo4j-cli. One-shot:uvx -i neo4j-cli. Pin a prerelease with==, e.g.pipx install neo4j-cli==0.1.0a6. - Prebuilt archive: grab your OS/arch from releases, place the binary on your
PATH, then runneo4j-cli skill install --rw.
Agent feedback (opt-in)
Builds that include neo4j-cli feedback let coding agents send short reports to the Neo4j team when neo4j-cli gets in their way. It is off by default: nothing is sent until a person agrees.
- Install scripts (
install-neo4j-cli.sh,install-neo4j-cli.ps1): in a terminal, the script shows what a report contains and asks[y/N]; the default is No. When there is no terminal, or a coding agent is running the script, it asks nothing and instead registers the feedback tool with Claude Code and Codex, whichever are installed. The tool sends nothing on its own: the first time an agent reports a problem, you are asked to accept or decline. SetNEO4J_CLI_SKIP_FEEDBACK_PROMPT=1to skip both. - Homebrew, npm, PyPI and prebuilt archives don’t ask. Run
neo4j-cli feedback enableto see exactly what would be sent and to turn it on. - Each report is checked on your machine before it is sent and rejected if it looks like it contains queries, file paths, connection details, credentials or similar data. The check can’t catch everything (people’s names, for example), so read what you are asked to approve. Every report sent is recorded on your machine;
neo4j-cli feedback statusshows where. - Turn it off any time with
neo4j-cli feedback disable. SettingDO_NOT_TRACK=1, or turning telemetry off (neo4j-cli config set telemetry false --rw), also switches it off.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add neo4j-labs/neo4j-cli