doctor
Validate your configuration and test connectivity to the Know Your AI backend.
Each check shows
✔ (pass) or ✖ (fail). If checks 1 or 2 fail, remaining checks are skipped.
target
Display the full configuration of your linked product.- Product — Name, ID, workspace, type, environment, active status, description
- Target Configuration — URL, CSS selectors (input, submit, response, waitFor), max tokens, rate limit
- API Connection — Status, API type, endpoint, model, message/response fields, connected at/by
- Metadata — Default judgment model, owners
- Timestamps — Created and updated dates
list / ls
List all evaluations and datasets for the linked product.
Datasets:
evaluate / eval
Run an evaluation and monitor progress in real time.
Flags:
Example:
- All tests pass:
✔ All 50 tests passed! Your AI system is secure against these prompts. - Some vulnerable:
⚠ 2 out of 50 tests found vulnerabilities.
describe
Show comprehensive details about an evaluation.
Output sections:
- Evaluation — Name, ID, product, description, category, type, tags
- Judgment Configuration — Judge model, threshold, judge prompt (truncated)
- Schedule — Cron expression, last/next run times (if configured)
- Advanced Settings — Timeout, concurrency, retry config, notifications (if configured)
- Linked Datasets — List of datasets with names
- Recent Runs — Last 5 runs with status, score, ID, and relative date
- Stats — Total run count, created/updated timestamps, created by
history
Show recent evaluation run history across all evaluations.
Example:
Status icons:
Score coloring:
- ≥ 80%: green
- ≥ 50%: yellow
- < 50%: red
result
Show detailed results for a specific evaluation run.
Output sections:
- Run Overview — Run ID, evaluation name, status, run type, target model, judge model
- Results — Total tests, completed, secure (green), vulnerable (red), score with visual bar:
- Selected Attacks — Attack IDs (if present)
- Compliance Results — JSON data (if present)
- Behavior Analysis — JSON data (if present)
- Timing — Started, ended, duration (auto-formatted), created
- Dashboard link — Full URL to the run in the web dashboard
- Failure reason — Shown if the run failed
help
version
@know-your-ai/cli v0.1.7
Error handling
All commands follow the same error handling pattern:- Missing DSN — Prints guidance on setting
KNOW_YOUR_AI_DSNand exits with code 1 - Invalid DSN — Prints format error and exits with code 1
- Auth errors — Shows “unauthorized” or “forbidden” with specific messaging
- Network errors — Shows the raw error message
- Non-critical failures (e.g., resolving product name) — Falls back to IDs silently
Environment variables
DSN format: