acceptable-jackal-25563
08/28/2023, 3:15 PMacceptable-jackal-25563
08/28/2023, 3:16 PMfreezing-airport-6809
Usage: pyflyte run [OPTIONS] COMMAND [ARGS]...
This command can execute either a workflow or a task from the command line, allowing for fully self-contained scripts. Tasks and workflows can be imported from other files.
Note: This command is compatible with regular Python packages, but not with namespace packages. When determining the root of your project, it identifies the first folder without an ``__init__.py`` file.
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --remote Whether to register and run the workflow on a Flyte deployment │
│ --project -p TEXT Project to register and run this workflow in │
│ --domain -d TEXT Domain to register and run this workflow in │
│ --name TEXT Name to assign to this execution │
│ --destination-dir TEXT Directory inside the image where the tar file containing the code will be copied to │
│ --copy-all Copy all files in the source root directory to the destination directory │
│ --image -i TEXT Image used to register and run. │
│ --service-account TEXT Service account used when executing this workflow │
│ --wait-execution Whether to wait for the execution to finish │
│ --dump-snippet Whether to dump a code snippet instructing how to load the workflow execution using flyteremote │
│ --overwrite-cache Whether to overwrite the cache if it already exists │
│ --envs JSON OBJECT OR JSON/YAML FILE PATH Environment variables to set in the container │
│ --tag TEXT Tags to set for the execution │
│ --help Show this message and exit. │
╰─────────
So you can simply
pyflyte run --env ...
acceptable-jackal-25563
08/28/2023, 7:59 PMfreezing-airport-6809
acceptable-jackal-25563
08/29/2023, 9:36 AMfreezing-airport-6809