Loading...
Last updated on
The gensx build command compiles and bundles a GenSX workflow for deployment to GenSX Cloud.
gensx build <file> [options]| Argument | Description |
|---|---|
<file> | Workflow file to build (e.g., src/workflows.ts). This should export an object with one or more GenSX workflows |
| Option | Description |
|---|---|
-o, --out-dir <dir> | Output directory for the built files. |
-t, --tsconfig <file> | Path to a custom TypeScript configuration file. |
-h, --help | Display help for the command. |
This command builds your GenSX workflow into an optimized bundle that can be deployed to GenSX Cloud. It:
After building, the command outputs the path to the bundled file, which can be used with the gensx deploy command.
# Build a workflow with default options
gensx build src/workflows.ts
# Build a workflow with a custom output directory
gensx build src/workflows.ts --out-dir ./dist
# Build a workflow with a custom TypeScript configuration
gensx build src/workflows.ts --tsconfig ./custom-tsconfig.jsongensx build requires Docker to be running.gensx directory