Loading...
Last updated on
The gensx deploy
command uploads and deploys a workflow to GenSX Cloud, making it available for remote execution.
gensx deploy <file> [options]
Argument | Description |
---|---|
<file> | File to deploy. This should be a TypeScript file that exports a GenSX workflow. |
Option | Description |
---|---|
-e, --env-var <KEY=value> | Environment variable to include with deployment. Can be used multiple times. |
-p, --project <name> | Project name to deploy to. |
--env <name> | Environment name to deploy to. |
-y, --yes | Automatically answer yes to all prompts. |
-h, --help | Display help for the command. |
This command:
After successful deployment, your workflow will be available for remote execution via the GenSX Cloud console or through the gensx run
command.
# Deploy a workflow
gensx deploy src/workflows.ts
# Deploy to a specific project and environment
gensx deploy src/workflows.ts --project my-production-project --env dev
# Deploy with environment variables
gensx deploy src/workflows.ts -e API_KEY=abc123 -e DEBUG=true
# Deploy with an environment variable taken from your local environment
gensx deploy src/workflows.ts -e OPENAI_API_KEY
gensx login
)gensx deploy
requires Docker to be running-e
or --env-var
option