Running into a wall with the CX as Code CLI when trying to export the entire organization configuration for a disaster recovery snapshot. The command purecloud export works fine on our dev org, but on the production environment it times out or returns a partial dump.
Here’s the command I’m running:
purecloud export --org-id 123456 --output ./backup-$(date +%Y%m%d) --include-all
The CLI hangs for about 15 minutes and then throws this error:
Error: Request timeout after 90000ms. Please check your connection or try exporting smaller subsets.
I’ve tried breaking it down by resource type (flows, users, ivr), but even export --resource-type flows fails if there are more than 200 flows. The JSON output looks valid up to the point of failure, just truncated.
Is there a way to increase the timeout in the CLI config? Or should I be calling the /api/v2/configuration/export endpoint directly with a custom header for longer timeouts? We need a complete snapshot, not just a subset. The current approach isn’t reliable for DR purposes.
Any workaround for large orgs?