Skip to main content

ndi-cli

ndi — the NDI platform CLI. Document operations, jobs, and workspace lifecycle wrap the same /v1 methods as ndi-sdk. The six workspace tools also run inside an agent sandbox; every other verb is refused there.

Setup

ndi login                                          # browser device-code; writes ~/.ndi/config.toml
export NDI_BASE_URL="https://ndi-api.nace.ai"      # optional; default shown
export NDI_WORKSPACE_ID="<workspace uuid>"         # or: ndi workspace use <id>

$NDI_API_KEY still wins over the file. $NDI_CONFIG_PATH overrides the config location. Workspace-scoped verbs also take --workspace ID.

Commands

Command Use
ndi login Authorize and save the API key
ndi version CLI + SDK versions
ndi upload FILE Stage bytes; prints ndi://upload/<id>
ndi parse SOURCE Markdown / text / blocks
ndi extract SOURCE -s SCHEMA Structured extract (--validate checks a schema with no job)
ndi split SOURCE --class id:label Logical sections
ndi classify SOURCE --class id:label Labels (refuses jobid://)
ndi ground SOURCE --target id=TEXT Locate quoted text
ndi job ID / ndi jobs / ndi cancel ID Inspect or cancel jobs
ndi workspace create|list|get|stats|delete|use Workspace lifecycle
ndi files upload|list|get|delete Workspace files (--ingest uploads then queues ingestion)
ndi ingest Queue ingestion
ndi deep-search QUERY / ndi fact-search QUERY Agentic / single-shot search
ndi filtered-search QUERY Corpus filter/rank/count over the metadata catalog (--cursor pages an earlier run)
ndi je-testing QUERY Journal-entry testing over a ledger package (--path to scope it, --effort for the level)
ndi folder-metadata / file-metadata / read-file / ask-file / run-sql / hybrid-search Read-only workspace tools (the sandbox surface)

Sources

SOURCE for document ops:

  • local file — uploaded, then the handle is used
  • directory — supported files, one job each (-j N, default 4)
  • https://... — fetched by the server
  • ndi://upload/<uuid> — a prior ndi upload
  • jobid://<uuid> or a bare UUID — reuse a parse job (not classify)
  • ws://<file_id> — a workspace file (needs a workspace)
  • - — a jobid:// / UUID line, or raw bytes with --file-name
ndi parse a.pdf -o id | ndi extract - -s schema.json

Output

Result content goes to stdout; status (job <id> queued, saved …) goes to stderr. -o auto|md|json|payload|id picks the shape. --json is an alias for -o json. --save PATH / --out-dir DIR write files. --async submits and prints the job id.

When a Parse result has external complete content, -o auto and -o md print the inline preview. Use -o json or -o payload to inspect its disclosure and authenticated full-content URL. A final-size preview carries content_truncated; reduced-layout Office parsing carries parse_fidelity. Documents use document.content_url; workbooks use the affected document.spreadsheet.sheets[].content_url. The CLI does not download these URLs automatically.

API failures exit 1. Usage / config errors exit 2. Schema-validation failures also show up to five field constraints, each limited to 500 characters; request input and unrelated error-detail fields are omitted.

See the CLI guide for the full command reference. SKILL.md is the agent-facing guide to the six workspace tools.

Metadata

Release files for ndi-cli 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ndi-cli 0.8.0
File Size Uploaded
ndi_cli-0.8.0.tar.gz 34.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ndi-cli 0.8.0
File Interpreter ABI Platform
ndi_cli-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 75.7 kB

Release files / ndi_cli-0.8.0.tar.gz

Download URL ndi_cli-0.8.0.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
791863e4ae5efec584739a1dbaf161770e0a42ae0b099cadddcd0124224d666e
BLAKE2b-256 checksum
How to use checksums
656e56f993722c4c0c6c2cb336e12d47042aafe7568084115ca128df16942533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / ndi_cli-0.8.0-py3-none-any.whl

Download URL ndi_cli-0.8.0-py3-none-any.whl
Size 41.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a95ea031d68ff7ffbceacd99cf4bdd25deabfb5e4e44838a110d03219016f80
BLAKE2b-256 checksum
How to use checksums
856b4abbce4b9885c6bfb6220038dfcc16f12494f00978bcd65cf12b56a36dd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.29.0

2 release files

0.28.1

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page