Skip to content
Trigora
Start building →

Programs

A Cloud Program is the deployed definition. The source is a TypeScript default-export async function, one Python @program async function, or Rust pub async fn main. trigora deploy compiles it locally and uploads the artifact plus the effect bundle. trigora.toml also reconciles that project’s triggers. A file with no [[triggers]] clears them.

Terminal window
export TRIGORA_TOKEN=...
trigora deploy
trigora deploy --program approval

List what the Cloud project has:

Terminal window
trigora programs --remote

This command targets trigora dev by default. Add --remote to target Trigora Cloud.

Or with the client:

const { programs } = await trigora.listPrograms();
const program = await trigora.getProgram("approval");

The TypeScript program id is the named default export, or the file stem when the default export is anonymous. Python uses the file stem. Rust Program ids use the source file stem. For lib.rs and main.rs, the Cargo package name is used instead. Deploys create versions. Executions pin the version they started on. See Versions and Artifact pinning.

Effect worker names are private. They are not part of the public Program object.