Back to Documentation
Documentation / Developer Tools / CLI Tools

CLI Tools

Command-line interface for CognexiaAI ERP

CLI Overview

Manage resources, run scripts, and automate workflows from the terminal

Installation

# npm
npm install -g @cognexiaai/cli

# Verify installation
cognexia --version

Authentication

# Login interactively
cognexia login

# Or set API key directly
cognexia config set api-key sk_live_your_key_here

Common Commands

cognexia contacts list

List all CRM contacts

cognexia contacts create

Create new contact interactively

cognexia invoices generate

Generate and send invoices

cognexia data export

Export data to CSV/JSON

Examples

Bulk Import

cognexia contacts import --file contacts.csv --dry-run
cognexia contacts import --file contacts.csv

Generate Reports

cognexia reports sales --from 2026-01-01 --to 2026-01-31 --format pdf
cognexia reports hr-summary --output summary.json

Webhook Management

cognexia webhooks list
cognexia webhooks create --url https://yourapp.com/webhook --events contact.created,deal.closed

Next Steps