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
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:Option | Description | Default |
---|---|---|
api_key | Your Klyra API key | - |
api_url | API base URL | https://api.klyra.io/v1 |
output_format | Default output format | json |
timeout | Request timeout in seconds | 60 |
max_retries | Maximum retry attempts | 3 |
color | Enable/disable colored output | true |
Advanced Usage
Using Settings Files
Create a JSON settings file for reusable configurations: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:Support
For more information and support:- Run
klyra --help
orklyra <command> --help
for command-specific help - Visit the CLI documentation for detailed guides
- Report issues on GitHub
- Contact support@klyra.io for assistance