Trying to get a full dump of our Architect environment for backup purposes. I’ve been using the CX as Code CLI tool (version 1.8.2) with the cxone export command. The basic flow export works, but it’s not pulling in all the nested sub-flows or the custom data actions linked to them.
Here is the command I’m running:
cxone export --resource-type flows --output-dir ./backup/flows --recursive
The tool finishes without errors, but when I check the JSON files in the output directory, several complex flows are missing their referenced sub-flow IDs. Instead of the actual ID, I see null or a placeholder string like REF_MISSING. When I try to import this later using cxone import, it fails with a 400 Bad Request because the references are broken.
I’ve tried adding the --force flag, but that just skips the validation and still writes the incomplete JSON. I also checked the API directly with a GET request to /api/v2/architect/flows and the response includes all the IDs correctly, so the issue seems specific to how the CLI parses or serializes the dependencies.
Has anyone found a way to force the CLI to resolve all nested dependencies before writing the JSON? Or is there a different command I should be using for a complete export?