Skip to main content
Manage indexes, documents, and queries from the terminal.
The installed binary is moss.

Authentication

Credentials are resolved in this order:
  1. CLI flags: --project-id and --project-key
  2. Environment variables: MOSS_PROJECT_ID and MOSS_PROJECT_KEY
  3. Config profile: selected by --profile, MOSS_PROFILE, or the active profile in ~/.moss/config.json

Quick start

Index management

Document management

Query

Queries download the index locally by default and run on-device. Add --cloud to skip the download and hit the cloud query API.

Interactive mode

In the prompt:
Interactive mode is local-only (does not support --cloud) and is not compatible with --json. With redirected or piped stdin, the piped query is run once and the session exits.

Job tracking

Profiles

Document file formats

JSON

A wrapper form is also accepted: {"documents": [...]}.

CSV

stdin

Global options

Models