Skip to main content

Overview

The Klyra CLI provides a convenient way to interact with the Klyra API directly from your terminal. It’s useful for testing, scripting, batch processing, and CI/CD pipelines.

Installation

Verify installation:

Authentication

Authenticate with your API key using one of these methods:

Basic Commands

Moderate Text Content

Moderate Image Content

Moderate Audio/Video Content

Batch Processing

Output Formats

Control the output format:

Configuration

View and edit your CLI configuration:
Available configuration options:

Advanced Usage

Using Settings Files

Create a JSON settings file for reusable configurations:
Use the settings file:

CI/CD Integration

Use the CLI in your CI/CD pipelines:

Webhooks

Manage webhooks from the CLI:

Custom Headers

Add custom headers to requests:

Plugins

Extend the CLI with plugins:

Trustless Mode

Use end-to-end encryption with trustless mode:

Examples

Content Moderation Pipeline

Interactive Mode

The CLI also offers an interactive mode:
This opens an interactive session where you can enter commands and see results immediately, perfect for exploration and testing.

Support

For more information and support: