NanoCERN CLI: Quick Start Guide

NanoCERN v2.0 is designed to be a lightweight, privacy-first tool for your terminal. Follow this guide to start auditing knowledge locally.

1. Quick Installation

Extract the NanoCERN ZIP package to your desired directory:
“`bash
unzip nanocern_cli_v2.0_complete.zip
cd nanocern_cli
pip install -e .
“`

2. Library Statistics

See the breadth of the current 648 Knowledge Unit (KU) library across Physics, Math, and Medicine:
“`bash
nanocern stats
“`
Output:
“`text
📊 Total KUs: 648
📍 Active Domains: 5
✅ average_confidence: 0.85
“`

3. Search the Library

Find specific laws or safety contracts by keyword:
“`bash
nanocern search “gravity”
nanocern search “paracetamol”
“`

4. Perform a Safety Check (Reactor Mock)

This is the core of NanoCERN. You can “check” a state against a known KU.

Physics Check (Regime Boundary):
“`bash
nanocern check laws/OHM.ku –state ‘{“voltage”: 12, “current”: 2, “resistance”: 6}’
“`

Medical Check (Safety Boundary):
“`bash
nanocern check drugs/PARACETAMOL.ku –state ‘{“dose_mg”: 5000}’
“`
Result:
“`text
❌ CONSTRAINT VIOLATED
[NKU-01] Type: Dose Violation
Reason: dose_mg(5000) > 4000 limit.
Status: Structural Rejection.
“`

5. View the Audit Log

Every rejection generates a permanent Negative Knowledge Unit (NKU). View the history of logical failures:
“`bash
nanocern list –nku
“`

[Next: Developer Guide (Python API) →](/nanocern-developer-api-guide/)

Leave a Comment