Skip to main content

Truero CLI

Understand and clean your data before it causes problems.

Run data-quality and ML validation checks on your machine, then optionally upload the report (not your raw file) to the Truero dashboard.

Prerequisites & Python Setup

  • Python Version: Python 3.11+ is recommended (Python 3.10+ supported).
  • macOS Note: Avoid the default system Python 3.9 (its bundled LibreSSL causes SSL warnings and syntax incompatibilities with modern libraries). Use Homebrew Python (brew install python@3.11), pyenv, or pipx.

Need to install Python 3.11?

OS Recommended Method Command / Link
macOS Homebrew / Official PKG • brew install python@3.11 (Homebrew)
• Official macOS Installer
Windows Official Installer / Winget • Official Windows Installer (Check "Add python.exe to PATH")
• winget install Python.Python.3.11
• Microsoft Store Python 3.11
Linux (Ubuntu/Debian) APT sudo apt update && sudo apt install python3.11 python3.11-venv python3-pip
Linux (Fedora/RHEL) DNF sudo dnf install python3.11 python3.11-pip
Cross-Platform / Fast uv / pyenv • astral.sh/uv (uv python install 3.11)
• github.com/pyenv/pyenv (pyenv install 3.11)

Install

Recommended (Isolated CLI via pipx):

pipx install truero

With Python 3.11+ directly:

python3.11 -m pip install --upgrade truero

In a virtual environment:

python3.11 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
python -m pip install --upgrade truero

Authentication & Identity

Truero CLI requires a one-time login to link your terminal session with your Truero Dashboard account.

🔑 Login Commands

# Log in via your browser (starts local loopback handshake)
truero login

# Check active session and machine telemetry status
truero whoami

# Sign out and remove local credentials
truero logout

🤖 Automated CI/CD Pipelines (Headless Execution)

In automated CI/CD pipelines (GitHub Actions, GitLab CI, Jenkins, Docker containers), provide your credentials via environment variables so scans run completely unattended:

export TRUERO_USER_ID="YOUR-USER-UUID"
export TRUERO_API_KEY="YOUR-API-KEY"  # Optional
truero scan data/dataset.csv --no-upload --accept-terms

GitHub Actions Example:

- name: Run Truero Data Validation
  env:
    TRUERO_USER_ID: ${{ secrets.TRUERO_USER_ID }}
  run: truero scan data/training_dataset.csv --no-upload --accept-terms

Quick start

In the same environment where you installed Truero:

truero scan data.csv

Supported files: CSV, JSON, Excel (.xlsx / .xls), Parquet.

Optional browser wizard (same checks, GUI):

truero web

Upload to the dashboard

After a scan, the CLI asks:

Upload report to Truero dashboard? [Y/n]:
  1. Type Y (or press Enter) to upload, or n to skip.
  2. Since you are authenticated via truero login, the report is automatically linked to your account.
  3. Upload sends the report summary only — never your raw dataset.

Optional configuration & CLI Flags

Flag / env Purpose
--user-id / TRUERO_USER_ID Dashboard User ID (UUID) for attribution & CI/CD
--api-key / TRUERO_API_KEY Truero API key for headless authentication
--no-upload Skip dashboard upload prompt
--accept-terms Non-interactively accept Terms & Conditions (for CI/CD)
--local Connect CLI login to local dev dashboard (http://localhost:5173)
--manual Manual token login for headless SSH environments without a browser
TRUERO_API_URL Override backend URL (default: hosted Railway API)
TRUERO_DASHBOARD_URL Dashboard base URL (default: https://dashboard.truero.ai)
--api-key / TRUERO_API_KEY Internal/dev only — not required for normal installs

🛡️ Privacy, Security & Safe Telemetry Notice

Truero is designed with privacy, safety, and local-first execution at its core:

  1. Your Dataset Stays on Your Machine:

    • Validation checks (duplicates, missing values, outliers, data types, correlation, silent failures, custom rules) execute 100% locally.
    • Raw data files, row values, personal records, and column contents are never uploaded to Truero servers. Only summary issue counts and metadata are sent if you explicitly choose to upload a report.
  2. Why Login / Signup is Required:

    • To distinguish genuine human developers from automated web scrapers, bots, and PyPI mirrors.
    • To securely link your local CLI runs to your Truero Dashboard account.
  3. What System Telemetry is Collected:

    • We capture only non-invasive, standard environment metadata to identify installation environments:
      • Operating System & release version (e.g. macOS 15.1, Ubuntu 22.04)
      • CPU architecture (e.g. arm64, x86_64)
      • Python runtime & CLI version (e.g. CPython 3.11.8, truero 0.2.6)
      • Local timezone & system locale (e.g. Europe/London, en_GB)
      • Anonymous machine fingerprint (deterministic SHA-256 hash — no raw hardware serials or MAC addresses are stored)
      • CI environment flag (distinguishes automated pipelines from interactive terminals)
    • Zero PII, zero credentials, zero source code, and zero dataset content are collected.

Useful commands

truero scan path/to/file.csv
truero login
truero whoami
truero logout
truero web
truero config show

Release files for truero 0.2.6

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

Source distribution (sdist)

Source distribution for truero 0.2.6
File Size Uploaded
truero-0.2.6.tar.gz 93.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for truero 0.2.6
File Interpreter ABI Platform
truero-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 179.8 kB

Release files / truero-0.2.6.tar.gz

Download URL truero-0.2.6.tar.gz
Size 93.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5302a9b8d75e3e719d7f45bdbcd9853dfd9657fbe445f46de137fca6f66979
BLAKE2b-256 checksum
How to use checksums
8c29b764d2668760f820648e6b0e93e2dd359622b16e279fd31edfb253bd14a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / truero-0.2.6-py3-none-any.whl

Download URL truero-0.2.6-py3-none-any.whl
Size 86.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6f6ce45cc9903f385acce3f1efb768a67ca3cf868f19c3e50d394c3f7893f1f
BLAKE2b-256 checksum
How to use checksums
40df5ea89bf1c18e4dc169b4c1ceb49b5ce160e8d4435c50da424272e4dcfd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

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