Skip to main content
The Cognigy CLI is a command-line interface enabling users to manage Projects directly from the command line. For example, with this CLI, you can create Snapshots, manage Locales, and deploy AI Agents efficiently. To start using the Cognigy CLI, refer to the Cognigy repository on GitHub. You can also explore the Cognigy Help Center, including its Cognigy CLI section.

Examples

The following examples show common CLI commands and the resources they work with.
Clone a Project or its resources of one type from Cognigy to your local machine.
Supported resource types: agent (all Project resources), flows, endpoints, lexicons, aiAgents.
Upload a Project or its resources from your local machine to Cognigy.
Supported resource types: agent (all Project resources), flows, endpoints, lexicons, aiAgents.
Download or upload a specific resource by name.
Supported resource types for:
  • pull — flows, lexicons, endpoints, extensions, locales, aiAgents.
  • push — flows, lexicons, endpoints, aiAgents.
Compare a local resource against its remote version.
Supported resource types: flows, lexicons, endpoints, aiAgents.
Trigger NLU model training for a Flow.
Creates a Snapshot or Locale in the remote Project and imports the new resource to your local Project.
Export a content.csv file with the text fields from Nodes in the Flow across all Locales, or import updated localized content back into a Flow.
Add or remove localization for multiple Intents and Nodes at once.
Translate Flow content using a machine translation provider.
Supported translation providers: google, microsoft, deepl.
Pass a JSON payload directly to the Cognigy REST API client.
Use --list to print all available API commands.
Schedule Playbook runs on Cognigy and poll for results. The output is written to ./playbookRunResults.json.
Exit codes: 0 — success, 1 — failure, 2 — timeout.
Create a Knowledge Store, extract content from source documents, and ingest .ctxt files into the store.
Supported extraction types: text, pdf, docx, csv, json, jsonl, epub, srt, md, cheerio, playwright, diffbot, other.

Limitations

  • For Cognigy 4.100 and earlier, you can download Snapshots up to 100 MB using the Cognigy CLI. In later versions, there’s no maximum download size for Snapshots via the CLI.
  • The push and restore commands can only update resources. To create a resource, use the Cognigy API.
  • CLI commands don’t support adding or moving Nodes in the Flow structure. For this purpose, use the Cognigy API.

More information

Last modified on November 11, 2026