Docs/Configuration/NxtOne CLI

NxtOne CLI

Configure the NxtOne CLI for your environment, language, and deployment topology.

The NxtOne CLI (nxtone) manages your local developer workspaces, links your repository to the platform, and verifies connectivity.

The CLI is separate from the NxtOne SDK. Runtime data comes from the SDK you install in each service — see the Java, Python, and Node.js integration guides.

1. Authentication

Authenticate your local terminal with the NxtOne platform to fetch and store scoped API keys:

bash
nxtone login

This command opens a browser window where you can log in. After authentication, a secure token is written to ~/.nxtone/config.json.

2. Initializing a Workspace

Initialize a new project workspace in your root code directory:

bash
nxtone init

This creates a local nxtone.toml file where you can define project metadata and exclusions.

3. Core Commands Reference

  • nxtone verify: Validates credentials, checks if the local environment is healthy, and tests connection to the server ingest endpoints.
  • nxtone sync: Links the workspace to the platform and syncs project code metadata for use in investigation screens.
  • nxtone run -- [command]: Runs a local process with your NxtOne settings injected into its environment (keys and profiles). The process still needs the NxtOne SDK installed to be observed.
Automatic Environment Variables: The CLI loads settings from your nxtone.toml and injects them as NXTONE_* environment variables automatically when running processes via nxtone run. Outside nxtone run, only the Python SDK reads nxtone.toml directly; the Java and Node.js SDKs read environment variables and .properties config files instead. See Environment Variables.