Error: Command failed with exit code 1
$ cxascode export architect --output ./flows
[ERROR] No resources found matching filter architect.*
I am attempting to migrate our existing Architect flow definitions into our Git repository to establish a proper Infrastructure as Code workflow for our mobile team’s backend dependencies. I have successfully configured the cxascode CLI with our organization’s client credentials and verified that the token generation works correctly for other resource types like routing queues.
However, when I attempt to export Architect flows using the standard export command, the CLI returns an empty result set or fails to locate the resources. I suspect this is related to the scope of the access token or the specific syntax required to target Architect resources, which seem to behave differently than standard platform entities.
I have tried the following variations:
cxascode export architect --output ./flowscxascode export --resource-type architect --output ./flowscxascode export --all --output ./exports
None of these commands produce the expected JSON files containing the flow definitions. The documentation for the CX as Code CLI is somewhat sparse on the specific resource types supported by the export command versus the get command.
Is it possible to export all Architect flows as JSON using the CX as Code CLI in a single batch operation? If so, what is the correct command syntax and required OAuth scope to ensure the CLI can access the Architect API endpoints? I am running this on macOS with the latest version of the CLI installed via npm.