Examples
The following examples show common CLI commands and the resources they work with.Clone a project
Clone a project
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.Restore a project
Restore a project
Upload a Project or its resources from your local machine to Cognigy.Supported resource types:
agent (all Project resources), flows, endpoints, lexicons, aiAgents.Pull and push resources
Pull and push resources
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 local and remote resources
Compare local and remote resources
Compare a local resource against its remote version.Supported resource types:
flows, lexicons, endpoints, aiAgents.Train a flow
Train a flow
Trigger NLU model training for a Flow.
Create a snapshot or locale
Create a snapshot or locale
Creates a Snapshot or Locale in the remote Project and imports the new resource to your local Project.
Export and import multilingual flow texts
Export and import multilingual flow texts
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.Localize a flow
Localize a flow
Add or remove localization for multiple Intents and Nodes at once.
Translate a flow
Translate a flow
Translate Flow content using a machine translation provider.Supported translation providers:
google, microsoft, deepl.Execute a raw API command
Execute a raw API command
Pass a JSON payload directly to the Cognigy REST API client.Use
--list to print all available API commands.Run playbooks
Run playbooks
Schedule Playbook runs on Cognigy and poll for results. The output is written to Exit codes:
./playbookRunResults.json.0 — success, 1 — failure, 2 — timeout.Manage AI agent knowledge
Manage AI agent knowledge
Create a Knowledge Store, extract content from source documents, and ingest Supported extraction types:
.ctxt files into the store.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
pushandrestorecommands 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.