Trying to dump all our Architect flows into a Git repo using the CX as Code CLI. We’ve got about 400 flows in this org, and the export seems to choke.
Docs state: “The export command retrieves all resources of the specified type and writes them to the output directory.” Simple enough.
I’m running:
genesys cloud export --org-id 12345 --output ./flows --resource-type architect_flow
It starts fine. Progress bar moves. Then it hits around flow 150 and just… stops. No error. No timeout. The process stays alive but CPU usage drops to zero. After 20 minutes I kill it. The output directory has 148 JSON files.
Checked the API directly. GET /api/v2/architect/flows returns the full list in chunks. The CLI seems to be making individual GET requests for each flow definition. GET /api/v2/architect/flows/{id}.
If I run the command with --debug, I see:
[INFO] Fetching flow definition for flow-uuid-123
[INFO] Fetching flow definition for flow-uuid-124
...
[INFO] Fetching flow definition for flow-uuid-150
Then silence.
My token is valid. Client credentials grant, 1 hour lifetime. Plenty of time.
Is there a rate limit I’m hitting? Docs don’t mention a specific throttle for bulk exports. Or is the CLI just inefficient?
Tried adding --concurrency 5. Same result. Hangs at 150.
If I export just one flow, it works instantly.
Any way to force the CLI to use the batch endpoint or something? Or am I stuck writing a custom script to hit /api/v2/architect/flows and then loop through the IDs?
Feels like a bug. Or maybe I’m missing a flag.