You can also export a flow through code alone using the Architect Scripting library.
Interestingly the library has two methods for auth. I suspect the latter still relates to an OAuth Client's token, but seemed worth mentioning:
You can then use the library to export to YAML. Here's a snippet from my project:
// ...
const loadedFlow: ArchBaseFlow = await flowFactory.loadFlowByFlowIdAsync(
flowId,
archEnums.FLOW_TYPES.inboundShortMessage,
'latest',
);
//...
output.flowYaml = await loadedFlow.exportToObjectAsync((exportObject) => {
return exportObject;
}, archEnums.FLOW_FORMAT_TYPES.yaml);
------------------------------
Lucas Woodward
Winner of Orchestrator of the Year, Developer (2025)
LinkedIn -
https://www.linkedin.com/in/lucas-woodward-the-devNewsletter -
https://makingchatbots.com------------------------------
Original Message:
Sent: 01-16-2026 14:53
From: Jesus Garces
Subject: How to export a architech flow
I need export a architech flow using the CLI, Terraform or Archy, but I the idea is no use a Client credential Oauth. I prefer use a temporal token.
The idea is not to use the UI since the goal is to automate the process of exporting and importing it into another ORG.
If you can give me an examples I appreciate it
#Architect
#Archy
#CXasCode
------------------------------
Jesus Garces
NA
------------------------------