Command-line client (wk) for the WaveKat platform.
Sign in once with your browser and inspect projects and annotations from the
terminal.
Full docs: https://wavekat.com/docs/cli/
Quick start
|
That's it — you're signed in and looking at your projects. Run any command
with --help to see all flags, or jump to the Examples.
What you can do today
| Command | What it shows |
|---|---|
wk login / wk logout |
sign in via your browser, or sign out |
wk me |
who you're signed in as |
wk projects list |
projects you can see, with your role, file/record counts, and review progress |
wk projects show <id> |
details for one project (--json for raw) |
wk annotations list <project-id> |
paginated annotations with inline ASR text |
wk exports list <project-id> |
exports for a project (status, clip count, size, owner, writer progress) |
wk exports show <export-id> |
one export's filter, split policy, counts |
wk exports create <project-id> --name … |
snapshot the current label set into a frozen export |
wk exports download <export-id> |
fetch manifest.jsonl + every clip into ./<id>/ |
wk exports delete <export-id> --yes |
soft-delete an export (cleanup sweep purges later) |
wk exports adapt smart-turn … |
convert a downloaded export into HF datasets Parquet shards |
wk config telemetry on|off|status |
toggle crash / error reporting (see Crash reporting) |
Every list command supports --page / --page-size (default 20) and prints a
ready-to-paste Next: line when more pages exist. wk annotations list
also takes --label, --review-status, --file-id, and --created-by
filters. Add --json to any command for machine-readable output you can pipe
into jq.
Supported on macOS (Apple Silicon + Intel) and Linux (x86_64 + aarch64).
Install
curl | sh (recommended)
|
Pin a specific version with WK_VERSION=vX.Y.Z or pick the install directory
with WK_INSTALL_DIR=$HOME/bin. Defaults to /usr/local/bin if writable, else
$HOME/.local/bin.
Prebuilt binaries
Each release attaches
tarballs and .sha256 checksums for the four supported targets — drop the
wk binary anywhere on your PATH.
From source
# or, from a clone:
&&
Sign in
wk opens your browser to the WaveKat platform, you click Authorize, and
the terminal confirms you're signed in. The browser tab will say "You can
close this tab" when it's done.
You can list and revoke tokens any time from your platform profile page.
wk logout revokes the current token before clearing the local file.
Headless / SSH
If no browser is available locally, run:
wk prints a URL — open it on any browser that can reach the loopback port
(typically ssh -L 1234:127.0.0.1:1234 remote-host, then open the URL the
CLI prints).
CI / pre-minted token
Pre-mint a token from your platform profile, then:
WK_TOKEN='wkcli_…' WK_BASE_URL='https://platform.wavekat.com'
Where credentials are stored
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/wavekat/auth.json |
| Linux | ~/.config/wavekat/auth.json |
| Windows | %APPDATA%\wavekat\auth.json |
Mode is 0600 on Unix. Run wk logout to remove it.
Crash reporting
wk sends anonymous crash and error reports to help us catch bugs we
wouldn't otherwise see (a server response shape that breaks an older
CLI, a panic in exports adapt, network errors). It's on by
default in the shipped binary.
What we collect:
- CLI version and build SHA, OS / arch, subcommand name.
- A short error category (
http_4xx,decode,network,auth_missing,panic, …) and a 200-char snippet of the error. - For HTTP failures, a templated endpoint path
(
/api/projects/:id/annotations, never the real ID). - A random anonymous install ID, generated once and stored alongside
auth.json.
What we never collect:
- Request bodies or response bodies (beyond the 200-char snippet).
- Full URLs containing IDs, command-line arguments, file paths, environment variables, auth tokens, cookies, or anything you've typed at a prompt.
The scrubber is in source at src/telemetry.rs — you can read
exactly what's filtered before sending.
To opt out:
WK_TELEMETRY=0
Source builds without the telemetry cargo feature compile out the
SDK entirely.
Examples
# login: somebody
# id: 42
# role: user
|
# Default: human-readable table with the ASR snippet under each row.
# Pipe raw JSON into jq for scripting.
|
Datasets — end-to-end
Producing a HuggingFace-loadable training set from a labelled project is three commands:
# 1. Snapshot the current labels into a frozen export.
# 2. Download the resulting snapshot (manifest + every clip).
# 3. Convert it into Parquet shards consumable by HF datasets.
Then on the trainer side:
=
The smart-turn adapter only knows two label keys — end_of_turn (→ 1)
and continuation (→ 0). Anything richer is rejected; binary collapse
of a richer label set must be an explicit user decision via the export
filter, not a silent default in the adapter.
Every clip is decoded, downmixed to mono, resampled to 16 kHz, and re-encoded as 16-bit PCM WAV before being written into the parquet. This both validates the source bytes (corrupt or non-WAV clips fail at adapt time, with the failing path in the error) and guarantees the shards contain a uniform shape downstream notebooks can rely on.
API reference
Each command maps to a single platform endpoint:
| Command | Endpoint |
|---|---|
wk login |
loopback OAuth + GET /api/me |
wk logout |
POST /api/auth/cli/tokens/revoke-current |
wk me |
GET /api/me |
wk projects list |
GET /api/projects |
wk projects show <id> |
GET /api/projects/{id} |
wk annotations list <project-id> |
GET /api/projects/{id}/annotations |
wk exports list <project-id> |
GET /api/projects/{id}/exports |
wk exports show <export-id> |
GET /api/exports/{id} |
wk exports create <project-id> |
POST /api/projects/{id}/exports |
wk exports download <export-id> |
GET /api/exports/{id}/manifest + per-clip GET /api/exports/{id}/clips/{annotation-id} |
wk exports delete <export-id> |
DELETE /api/exports/{id} |
wk exports adapt smart-turn |
local-only; reads a downloaded snapshot |
wk config telemetry |
local-only; writes auth.json |
Help and feedback
wk --help(orwk <command> --help) for usage details.- File issues at https://github.com/wavekat/wavekat-cli/issues.
License
Apache-2.0. See LICENSE.