Skip to content

Installation

  • Node.js 18 or later
  • npm (included with Node.js)

Install the CLI globally from npm:

Terminal window
npm install -g @neuralconfig/nrepo

Confirm the installation succeeded:

Terminal window
nrepo --version
# 0.0.4

To update to the latest version:

Terminal window
npm update -g @neuralconfig/nrepo

You can also reinstall to force the latest:

Terminal window
npm install -g @neuralconfig/nrepo@latest

The CLI runs a non-blocking update check on every command invocation. If a newer version is available, you will see a notice after the command output. The check does not delay command execution.

If the nrepo command is not found after installation, make sure your npm global bin directory is on your PATH:

Terminal window
npm config get prefix
# Add <prefix>/bin to your PATH if it is not already there

On macOS and Linux you can add it to your shell profile:

Terminal window
export PATH="$(npm config get prefix)/bin:$PATH"

After installing, authenticate with your NeuralRepo account:

Terminal window
nrepo login

See Authentication for details on OAuth and API key login.