Skip to main content
Command-line interface for TopK.

Installation

Authentication

To authenticate, run:
Alternatively, you can set TOPK_API_KEY environment variable and skip the topk login command.

Commands

login

To authenticate, run:
Alternatively, you can set TOPK_API_KEY environment variable and skip the topk login command.

logout

Remove saved credentials:

Global flags

These flags are accepted by every command:

--output

Options:
  • text (default)
  • json
Output results as NDJSON — one JSON object per line, compatible with jq.

--api-key

API key to use for this invocation. Overrides the TOPK_API_KEY environment variable and the key saved via topk login.

Updating the CLI

To update CLI to the latest version, run: