Skip to main content

Installation

The CLI is included with the Valiqor Python SDK. Install it with pip:
pip install valiqor
After installation the valiqor command is available system-wide.
valiqor --version
--version also lists which optional modules are installed (Trace, Scanner, Eval, Security, Failure Analysis).

Command Structure

valiqor <command> [subcommand] [flags]
Command GroupDescription
loginAuthenticate via browser or credentials
signupCreate a new account
logoutClear stored credentials
verifyVerify your email address
keysCreate, list, or delete API keys
configInteractive setup, show, or update project settings
statusShow auth, config, and connection status
testValidate configuration and connectivity
uploadUpload trace and scan files
traceInitialize, apply, remove, and refresh tracing
scanRun AST-based code scans
evalRun evaluations and inspect results
securitySecurity audits and red-team simulations
faFailure analysis on traces and datasets

Global Options

Every command supports:
FlagDescription
--help / -hShow help for any command or subcommand
--version / -vPrint SDK version and module availability

Credential Storage

The CLI stores credentials in two locations:
LocationPurposeFile
GlobalShared across all projects~/.valiqor/credentials.json
LocalPer-project override.valiqorrc in the project root
Credential resolution order:
  1. CLI flag (--api-key)
  2. Local .valiqorrc
  3. Global ~/.valiqor/credentials.json
  4. Environment variable VALIQOR_API_KEY

Configuration File

Project settings are stored in .valiqorrc (JSON) at the project root.
{
  "project_name": "my-app",
  "api_key": "vq-...",
  "trace_dir": "valiqor_output/traces",
  "scan_dir": "valiqor_output/scans",
  "environment": "development",
  "valiqor_intelligence": true,
  "debug": false
}
See Configuration for details on every key.

Module Availability

Some commands require optional SDK modules. The CLI checks availability at runtime and provides install hints when a module is missing.
ModuleRequired For
valiqor.tracetrace commands
valiqor.scannerscan commands
valiqor.evaleval commands
valiqor.securitysecurity commands
valiqor.failure_analysisfa commands
Run valiqor --version to see which modules are installed.

Quick Start

# 1. Sign up or log in
valiqor signup
valiqor login

# 2. Initialize a project
valiqor config

# 3. Verify everything works
valiqor test

# 4. Run your first evaluation
valiqor eval run --dataset data.json --metrics factual_accuracy,coherence