I’m trying to dump all Architect flows from our Genesys Cloud org using the CX as Code CLI. We’re on a hybrid setup, so I need these JSONs for version control.
I’ve got the service account set up with the right scopes (architect:flow:read). Running the command:
gccli architect flow export --output ./flows.json
The command finishes without error, but flows.json just contains []. I can see the flows in the UI, so they exist.
I tried specifying an org id explicitly:
gccli architect flow export --org-id 12345678-1234-1234-1234-123456789012
Still empty. Checked the raw API endpoint /api/v2/architect/flows via Postman with the same token, and it returns a list of 50 flows. The CLI is clearly authenticating since it doesn’t throw a 401, but it’s pulling nothing.
Is there a flag I’m missing? Or does the CLI only export flows tagged with a specific label? The docs are vague on filtering behavior for bulk exports.