CX as Code CLI export fails with 404 on Architect flows — JSON payload missing flowId?

Does anyone understand why the CX as Code CLI is returning a 404 Not Found when I attempt to export all Architect flows? I am trying to mirror our internal portal’s status widget data by pulling the raw JSON definitions of our inbound flows using the genesyscloud CLI tool. My goal is to parse the JSON locally in a SvelteKit server route to check for specific routing logic changes.

I am running this on Windows 10 with the CLI version v2.0 installed via npm. Here is the exact command I am executing:

genesyscloud architect flows export --output ./flows --overwrite

The CLI initializes the export process successfully, but it immediately throws an error for every flow ID I have provisioned. The error log looks like this:

Error: Failed to retrieve flow definition. Status: 404
Message: Resource not found for id: 12345-abc-def

I have verified that the OAuth token generated by the CLI is valid by manually calling the /api/v2/architect/flows/{id} endpoint via Postman, which returns a 200 OK with the full JSON payload. This suggests the issue is not with authentication or permissions, but rather how the CLI constructs the export request.

My suspicion is that the CLI is expecting a different structure for the flowId parameter or that the --output directory requires a pre-existing manifest file that I am missing. I have tried adding the --force flag, but it does not change the outcome.

Is there a specific JSON payload or configuration file I need to provide to the CLI to map the flow IDs correctly? Or is this a known issue with the current version of the CX as Code provider where bulk exports of Architect resources are broken? I need a reliable way to script this export so I can integrate it into my Svelte build process.