diff --git a/packages/cli/README.md b/packages/cli/README.md index 832179f..5a868d0 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -19,6 +19,9 @@ npx @kinora/cli upload results.json --project web-app --token Create a project API token in the kinora dashboard (Settings → Workspace). Auth can also come from the environment (`KINORA_TOKEN`, `KINORA_URL`). Self-hosting? Point at your server with `--url` / `KINORA_URL`. +Only traces are uploaded by default. Running without tracing? Upload the videos and screenshots +on their own with `--upload-attachments trace,video,screenshot`. + Bulk-import a backlog of historical reports with `kinora import `. ## Documentation diff --git a/packages/cli/src/kinora.ts b/packages/cli/src/kinora.ts index a51e774..7251d43 100644 --- a/packages/cli/src/kinora.ts +++ b/packages/cli/src/kinora.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import type { AttachmentKind } from '@kinora/core' import { existsSync, readFileSync } from 'node:fs' import { readFile } from 'node:fs/promises' import process from 'node:process' @@ -33,8 +34,24 @@ Options: --pr-label